备忘录[译]
创建 | Create
克隆一个已存在的仓库 | Clone an existing repository
git clone [email protected]:adsryen/gitbook.prlrr.com.git创建一个新的本地仓库 | Create a new local repository
git init 本地更改 | Local Changes
工作目录中已更改文件 | Changed files in your working directory
git status已追踪文件的更改 | Changes to tracked files
git diff 添加当前全部更改到下次提交版本 | Add all current changes to next commit
git add . 添加文件中某些更改到下次提交版本 | Add some changes in to next commit
提交已追踪文件的全部本地更改 | Commit all local changes in tracked files
提交上一次暂存区更改 | Commit previously staged changes
更改上次提交 | Change the last commit
提交历史 | Commit history
显示全部提交,以最新的开头 | Show all commits,starting with newest
显示某个文件一段时间内的更改 | Show changes over time for a specific file
某文件是谁在什么时候更改了什么内容 | Who changed what and when in
分支和标签 | Branches & Tags
列出全部已存在的分支 | List all existing branches
切换到 HEAD 分支 | Switch HEAD branch
基于当前 HEAD 创建新分支 | Create a new branch based on your curent HEAD
基于远程分支创建新的正在追踪分支 | Create a new tracking branch based on a remote branch
删除一个本地分支 | Delete a local branch
为当前提交打上标签 | Make the current commit with a tag
更新和发布 | Update & Publish
列出当前全部已配置的远程仓库 | List all currently configured remotes
显示远程仓库信息 | Show information about a remote
添加的远程仓库 | Add new remote repository named
下载来自远程仓库的所有更改但是不合并到 HEAD | Download all changes from but don't integrate into HEAD
下载来自远程仓库指定分支的所有更改并且自动合并到 HEAD | Download changes and directly merge/integrate into HEAD
在远程仓库上发布本地更改 | Publish local changes on a remote
在远程仓库上删除分支 | Delete a branch on the branch
发布你的标签 | Publish your tags
合并和变基 | MERGE & REBASE
合并指定分支到你的 HEAD | Merge into your current HEAD
变基到当前HEAD | Rebase your current HEAD onto
取消变基 | Abort a rebase
使用已配置的冲突工具去解决冲突 | Use your configured merge tool to solve conflicts
使用编辑器手工解决冲突然后(解决之后)标记文件已解决冲突 | Use your editor to manually solve conflicts and (after resolving) mark file as resolved
撤销 | UNDO
丢弃工作区全部更改 | Discard all local changes in your working directory
丢弃指定文件的本地更改 | Discard local changes in a specific file
抵消一个提交(通过产生一个新的相反的提交) | Revert a commit (by producing a new commit with contrary changes)
重置当前 HEAD 指针到上一个提交...然后丢弃自那以后的全部更改 | Reset your HEAD pointer to a previous commit ... and discard all changes since then
...然后作为未缓存更改保存全部更改 | ... and preserve all changes as unstaged change
...然后保存未提交的本地更改 | ... and preserve all changes as unstaged change
建议 | SUGGESTION
提交相关更改 | COMMIT RELATED CHANGES
经常提交 | COMMIT OFTEN
不要提交未完成工作 | DON'T COMMIT HALF-DONE WORK
提交前测试代码 | TEST CODE BEFORE YOU COMMIT
编写代码提交信息 | WRITE CODE COMMIT MESSAGE
版本控制不是一个备份系统 | VERSION CONTROL IS NOT A BACKUP SYSTEM
利用分支 | USE BRANCHES
认同工作流 | AGREE ON A WORKFLOW
帮助和文档 | HELP & DOCUMENTATION
免费在线资源 | FREE ONELINE RESOURCES
最后更新于