[ Web Proxy ]
URL:
Viewing:
https://raw.githubusercontent.com/primary-code-test/JavaGuide/master/docs/tools/Git.md
[Back]
[Original]
- [](#) - [](#) - [](#) - [](#) - [](#) - [](#) - [ Git](#-git) - [Git ](#git-) - [Git ](#git-) - [Git ](#git-) - [Git ](#git-) - [ Git ](#-git-) - [](#) - [ Git ](#-Git-) - [](#) - [](#) - [](#) - [](#) - [](#) - [](#) ## ### ### ###  ### Centralized Version Control Systems CVCS  - **** - **** ### Distributed Version Control System DVCS Git  Git ## Git ### Git Linux BitKeeper BitKeeper Linux Linux BitKeeper Linux Linux Linus Torvalds BitKeeper ### Git Git Git **** **Git** CVSSubversionPerforceBazaar **** (Delta)
[2019-3deltas.png]
**** **** Git Git Git Git Git ****
[2019-3snapshots.png]
### Git Git 1. **committed** 2. **modified** 3. **staged** Git **Git (.git directoty)****(Working Directory)** **(Staging Area)**
[2019-3areas.png]
** Git ** 1. 2. 3. Git ## Git ### Git Git 1. : `git init` , `.git` 2. Git : `git clone [url]` : `git clone [url]` directoryname ### 1. **** : `git status` 2. ****`git add filename ` ()`git add *`()`git add *.txt` .txt 3. ****`.gitignore` 4. **:** `git commit -m ""` `git status` `git commit` 5. **** : `git commit -a -m ""` `git commit` `-a` Git `git add` 6. **** `git rm filename` 7. **** `git mv README.md README`(`mv README.md README``git rm README.md``git add README` ) ### Git Git "git log" Git ### - `git remote add origin ` , Github `git remote add origin https://github.com/Snailclimb/test.git` - `git push origin master` ( *master* ) ### - test test1`git remote rename test test1` - test1:`git remote rm test1` ### `git log` `git log` **** ```shell git log --author=bob ``` ### `--amend` ```console git commit --amend ``` ```console git reset filename ``` : ``` git checkout -- filename ``` ``` git fetch origin git reset --hard origin/master ``` ### *master* bug test ```console git branch test ``` testGit Git ```console git checkout test ```
[]
() ```console git checkout -b feature_x ``` ``` git checkout master ``` () ```java git merge test ``` ``` git branch -d feature_x ``` ``` git push origin ``` ## **** [issue729](https://github.com/Snailclimb/JavaGuide/issues/729)Learn Git Branching https://oschina.gitee.io/learn-git-branching/ git **** - [Git - ](http://rogerdudler.github.io/git-guide/index.zh.html) - [Git](http://marklodato.github.io/visual-git-guide/index-zh-cn.html) - [Git](https://backlog.com/git-tutorial/cn/intro/intro1_1.html) - https://git-scm.com/book/en/v2 - [Generating a new SSH key and adding it to the ssh-agent](https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) - [ Git Linus ](https://github.com/torvalds/subsurface-for-dirk/blob/a48494d2fbed58c751e9b7e8fbff88582f9b2d02/README#L88)
Web Proxy Viewer |
New URL
|
Original Page