diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b84c0a251116c2a69c65974a0d44b24871e811ba --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +Command line instructions + + +Git global setup + +git config --global user.name "mayoranna" +git config --global user.email "mayoranna@sch.bme.hu" + + +Create a new repository + +git clone git@git.sch.bme.hu:mayoranna/prog1nhf.git +cd prog1nhf +touch README.md +git add README.md +git commit -m "add README" +git push -u origin master + + +Existing folder + +cd existing_folder +git init +git remote add origin git@git.sch.bme.hu:mayoranna/prog1nhf.git +git add . +git commit -m "Initial commit" +git push -u origin master + + +Existing Git repository + +cd existing_repo +git remote rename origin old-origin +git remote add origin git@git.sch.bme.hu:mayoranna/prog1nhf.git +git push -u origin --all +git push -u origin --tags \ No newline at end of file