Git 初步

来源:互联网 发布:windows 10 输入法切换 编辑:程序博客网 时间:2024/06/17 05:26

Git 管理代码,第一次用,有些概念难免要记录下:


git init

git branch -a

git branch -v

git branch my_branch

git checkout my_branch

git checkout -b my_branch  = git branch my_branch & git checkout my_branch

git branch --set-upstream my_branch origin/my_branch

git add & git commit -m 

git pull / git fetch & git merge

git push origin master:master


git pull 产生error:

git config branch.master.remote origin

git config branch.master.merge refs/heads/master


GIT FETCH/MERGE:

git fetch origin master

git log -p master origin/master

git merge origin/master


几篇参考文章,很有价值:

1,2,3

Git详解之一 Git起步


1,2,3

Git 教學(1) : Git 的基本使用

0 0
原创粉丝点击