Basic knowledge about Git
I remembered I have used Git when did some project with friends but it is long time ago and that time I simply followed friends' instruction and haven't learned anything by myself.And such experience proved if something is too easy to get for you it is also easy to forget
So now I just need to learn git in a systematic way by myself.I found such distributed way is really like today's block chain and such concept has been in used for a really long time, why today it becomes a new concept and be famous again? It is just like you rename internet to cloud and get money from it...
Ok let's go back about Git itself
To use git
First of all you need to install it
Yes the magic homebrew will do the hard work
brew install git
And to update you can simple inpute
brew upgrade git
After install is to build your repository
cd to a path where you what to store your codes and run
git init
and then you can do your operation and more git commends we can find anywhere on internet such as this one
The most frequently used comment is
git checkout -b [name_of_your_new_branch]新建一个branch并且switch到那个branch~
git clone https://gitee.com/xlh/paperjet.git
git fetch
Git pull
git checkout --track origin/queenie
git status git commit -m "注释"