Skip to content
New issue

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

git 操作 #23

Open
cqupt-yifanwu opened this issue Nov 23, 2017 · 0 comments
Open

git 操作 #23

cqupt-yifanwu opened this issue Nov 23, 2017 · 0 comments

Comments

@cqupt-yifanwu
Copy link
Owner

  • git rebase 分支名/master 将本地仓库分支的内容合并,如果加上pull是将远程仓库的进行合并,(为什么pull 后面加rebase,会将之前的commit生成一个新的commit 让代码提交记录更加整洁)
  • git reset --hard 与 git reset --soft,hard 是放弃本地的改动,soft会保留本地的改动
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant