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 "注释"

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,167评论 0 10
  • The Inner Game of Tennis W Timothy Gallwey Jonathan Cape ...
    网事_79a3阅读 14,289评论 3 20
  • “把那两把剑给我扔在一旁!”康斯坦丁语气严厉地说道,安泽尔则一脸惊诧地看着他,不是说教自己逆闪剑吗?他昨天兴奋了一...
    彼鹿阅读 4,628评论 8 27
  • 计划重要吗?计划真的很重要,但需要先确定目标和方向,否则,南辕北辙,背道而驰。 万事开头难,选好方向更难。 但什么...
    红茶506阅读 3,715评论 0 2
  • 小时候,爸爸经常对我说:儿子,你真棒!没错,我爸从小就是把我当男孩养的,话说那是倡导一对夫妻一对孩的年代,我前...
    诸相飞象阅读 5,660评论 0 1

友情链接更多精彩内容