Github
文章平均质量分 80
onecoders
Roy Sun
展开
-
Git版本控制:利用git reset恢复档案,暂寸状态,commit讯息
git commit后去除此次commit的修改,返回之前的版本 方法: git reset --hard git push origin HEAD --force 其他: 根据–soft –mixed –hard,会对working tree和index和HEAD进行重置: git reset –mixed:此为默认原创 2013-04-27 17:29:36 · 1037 阅读 · 0 评论 -
Generating SSH Keys
If you have decided not to use the recommended HTTPS method, we can use SSH keys to establish a secure connection between your computer and GitHub. The steps below will walk you through generating a转载 2013-04-28 10:30:04 · 920 阅读 · 0 评论 -
How to Push a New Local Branch to a Remote Git Repository
You might find yourself in a situation where you have a branch that you created locally and want to push to a remote git repository. Suppose you created a local plugin branch that you want to expose转载 2013-06-09 13:20:24 · 1649 阅读 · 0 评论 -
Git: How To Revert A Branch Merge
This was a stumper for me a while back. Jason Meridth posted on reseting / reverting git commits and I had a question in the comments. My specific situation was about having a branch merged at the w转载 2013-06-19 13:48:09 · 1521 阅读 · 0 评论 -
Basic Git commands
Here is a list of some basic Git commands to get you going with Git. For more detail, check out the Atlassian Git Tutorials for a visual introduction to Git commands and workflows, including exampl转载 2013-07-24 16:54:42 · 832 阅读 · 0 评论