Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackfrued/code
https://github.com/jackfrued/code
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackfrued/code
- Owner: jackfrued
- Created: 2018-06-22T07:42:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-23T04:16:24.000Z (over 6 years ago)
- Last Synced: 2023-04-08T11:40:53.700Z (over 1 year ago)
- Language: HTML
- Size: 598 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git演示项目
2018年6月22日
- `git init`
- `git add `
- `git add .`
- `git checkout -- `
- `git checkout -- .`
- `git status`
- `git config --global user.name `
- `git config --global user.email `
- `git commit -m 'reason'`
- `git log`
- `git reset --hard HEAD^`
- `git reset --hard `- `git remote add origin `
- `git push -u origin `
- `git pull`1. 克隆项目到本地
```git clone ```
2. 创建并切换到自己的分支
```git branch jack```
```git checkout jack```
或
```git checkout -b jack```3. 在自己的分支上做开发然后实施版本控制
```git add .```
```git commit -m 'reason'```4. 将自己的工作合并到master上
```git checkout master```
```git merge jack```
如果不希望使用fast-forward方式合并(git log中没有分支记录)
```git merge --no-ff jack -m 'reason'```5. 如果想通过图形化的方式查看到分支信息
```git log --graph --pretty=oneline --abbrev-commit```