https://github.com/numeroanddev/git_document
https://github.com/numeroanddev/git_document
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/numeroanddev/git_document
- Owner: NUmeroAndDev
- Created: 2018-08-07T06:18:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-17T01:41:06.000Z (almost 7 years ago)
- Last Synced: 2025-02-17T08:22:30.250Z (10 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```