git基本操作 git的基本操作

git的基本操作

 

1、加入缓存

1
git add .

2、拉到本地

1
git pull origin feat_4st_phase
1
git pull origin feat_admin_1st_phase

3、提交commit

1
git commit  -m 

4、推到仓库

1
git push origin feat_4st_phase
1
git push origin feat_admin_1st_phase

5、新建并切换到该分支

1
git checkout -b V1

V1就是新分支

6、切换分支

1
2
3
git fetch
git checkout feat_2st_phase
git branch

1、加入缓存

1
git add .

2、拉到本地

1
git pull origin feat_4st_phase
1
git pull origin feat_admin_1st_phase

3、提交commit

1
git commit  -m 

4、推到仓库

1
git push origin feat_4st_phase
1
git push origin feat_admin_1st_phase

5、新建并切换到该分支

1
git checkout -b V1

V1就是新分支

6、切换分支

1
2
3
git fetch
git checkout feat_2st_phase
git branch

猜你喜欢

转载自www.cnblogs.com/wasbg/p/11123225.html