Finish this tutorial with bash commands is recommended, while you can use GUI as well.
Just enjoy it.:)
Install Git.
Right click a prepared directory and choose Git Bash Here or Git GUI Here.I am going to discuss the bash way in Windows only.
git clone <url>
Init your new repo with a remote repo.And you are now in the branch master.
Our remote repo : [email protected]:thytless/gitCooperationExercise.git
Some necessary configurations.
git config --global user.name "<Your Name>"git config --global user.email <Your Email Address>git config --global core.autocrlf true: if on Windows, just do it.
Caution: --global option will change the global git configuration on your computer, e.g on Windows, in "C:\Users\???\.gitconfig".
git remote add origin <url>: add a new remote repo named origin
Try git commands with some text work.
Now we have reqdoc4.0.md in our repo, use your favorite editor to add more discriptions.
git statusorgit st: File info and command advice.git add <filename>: add this (unstaged) file to index.Necessary before commit.git commit -m "<message>": commit your change with a concluding message.git commit -a -m "<message>": add all unstaged file into index, then commit.git checkout -- <filename>: abandon all changes made to this file since last commit.