From 9115b33ccfb4cda60fed5885d061c29c8fca14be Mon Sep 17 00:00:00 2001 From: curvd_ Date: Mon, 8 Apr 2019 23:12:59 +0200 Subject: [PATCH] updated git repo creation process --- linux_general.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux_general.txt b/linux_general.txt index 7ed6089..4b12f64 100644 --- a/linux_general.txt +++ b/linux_general.txt @@ -240,7 +240,9 @@ -Some git stuff: Creating a repo and pushing the first commit: "https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/" - basically it's a matter of defining the remote (origin) repo "git remote add origin " + first init the repo with "git init" + then if you want to sync with a remote repo basically it's a matter of defining the remote (origin) repo "git remote add origin " + before committing add staged changes with "git add /roba" or everything with "git add ." committing the changes in local repo "git commit -m "message" " pushing before first pull "git pull origin master --allow-unrelated-histories" the last part is just to merge the repos (if needed) and finally pushing the changes "git push origin master", or in atom just publish