An open API service indexing awesome lists of open source software.

https://github.com/numeroanddev/git_document


https://github.com/numeroanddev/git_document

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# よく使う git のメモ

### ローカルにあるリモートのブランチを更新
```
git remote update -p
```

### リポジトリだけのアカウント設定
```
git config --local user.name "UserName"
git config --local user.email "address"
```

### gitignore の更新
```
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
```

### 過去のコミット上からファイルを消す
```
git filter-branch --tree-filter "rm -f file_name" HEAD
```

### リポジトリの移行
```
git remote set-url origin new_url
```