We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(搭配使用github desktop)
git remote add propersoft-cn https://github.com/propersoft-cn/ihos.git
git remote show origin 更新连接信息 git remote update 更新连接信息 git checkout -b app-dev propersoft-cn/app-dev git push origin app-dev
git branch
git branch XXX
git checkout XXX
git branch -D XXX
命令:$ Git push origin 【空格】【冒号】【你的分支名字】 比如我github上有master和feature分支,我现在想着删除feature分支,命令如下: $ git push origin :feature
git remote -v
git log
git reset --hard 8eae84
习惯 我习惯保持一个分支与远程分支同步。比如远程仓库有一个分支app,在本地仓库里也建一个分支app。每次要修改代码前,首先同步一下app分支 git pull propersoft-cn app ,然后基于app分支创建一个新的分支。改完代码后 git push origin app-new。如果有冲突,在app-new分支下 git pull propersoft-cn app(有时候需要命令行中ctrl+z退出),然后可以在github desktop中看到有冲突的文件(编辑器里也能看到),修改再提交即可。
git pull propersoft-cn app
git push origin app-new
自己的仓库
The text was updated successfully, but these errors were encountered:
No branches or pull requests
(搭配使用github desktop)
git remote add propersoft-cn https://github.com/propersoft-cn/ihos.git
git branch
git branch XXX
git checkout XXX
git branch -D XXX
git remote -v
git log
git reset --hard 8eae84
(commit 8eae8436ec34553......)习惯
我习惯保持一个分支与远程分支同步。比如远程仓库有一个分支app,在本地仓库里也建一个分支app。每次要修改代码前,首先同步一下app分支
git pull propersoft-cn app
,然后基于app分支创建一个新的分支。改完代码后git push origin app-new
。如果有冲突,在app-new分支下git pull propersoft-cn app
(有时候需要命令行中ctrl+z退出),然后可以在github desktop中看到有冲突的文件(编辑器里也能看到),修改再提交即可。自己的仓库
The text was updated successfully, but these errors were encountered: