GIT实用命令集合


#usually used GIT process command:

1.clone remote repository
 $ git clone http://***.git

2.confirm the branch history
 $ gitk& filepath\filename

3.create a local repository 
$ git status 
$ git fetch --prune 
$ git branch -a 
$ git checkout -b mynewbranch

4.get your branch 
$ git checkout mybranch

5.commit your modify 
$ git status  $ git add. 
$ git commit 

enter the [i]key to modify the linux text,
then shift+insert,ESC,:wq to save your commit commend

6.push your branch to the remote 
$ git push -u origin mybranch
7.merge your branch to the release branch
$git checkout releasebranch 
$git fetch --prune  
$git rebase origin/relasebranch 
$git merge --no--ff mybranch

8.push the relasebranch
$git push origin releasebranch 

--------------------------------------------------- modify the old comment

①git rebase -i HEAD~2
②pick⇒edit。edit---Esc---:wq.
③git commit --amend

④git rebase --continue

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值