首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

GIT常用命令会合(持续更新)

2012-09-10 
GIT常用命令集合(持续更新)1 check一个资源到本地git clone URL FOLDER?2 locate到另外一个URLgit remote

GIT常用命令集合(持续更新)

1 check一个资源到本地

git clone URL FOLDER

?

2 locate到另外一个URL

git remote set-url origin NEW_URL

?

3 添加另外一个remote URL

git remote add REMOTE_NAME URL

?

4 删除一个remote

git remote rm REMOTE_NAME

?

5 解决每次pull 或push都需要制定branch的issue

git config branch.master.remote origin

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


6 把所有的改动都添加到stage

cd 到项目根目录

git add . -A

?

?

?

?

热点排行