Gitコマンド
本項は書きかけの記事です。正確な情報は公式サイト、公式ドキュメント、記載の参照サイトでご確認ください。
目次
概要
2005年12月、Linuxの父Linus Benedict Torvalds、 濱野純氏らによって開発されたバージョン管理ツール。
History
+
|
開く |
ver |
releasedate |
patch ver |
path release |
etc |
2.38 |
2022/10/2 |
2.38.1 |
2022/10/6 |
|
2.37 |
2022/6/27 |
2.37.2 |
2022/7/5 |
|
2.36 |
2022/4/18 |
2.36.2 |
2022/6/25 |
|
2.35 |
2022/1/25 |
2.35.4 |
2022/6/25 |
|
2.34 |
2021/11/15 |
2.34.4 |
2022/6/25 |
|
2.33 |
2021/8/16 |
2.33.4 |
2022/6/25 |
|
2.32 |
2021/6/6 |
2.32.3 |
2022/6/25 |
|
2.31 |
2021/3/15 |
2.31.4 |
2022/6/25 |
git difftool adds --skip-to option --format enhancements for machine readable git pull warning to specify rebase or merge |
2.3 |
2020/12/27 |
2.30.5 |
2022/6/25 |
Userdiff for PHP update, Rust, CSS update The command line completion script (in contrib/) learned that "git stash show" takes the options "git diff" takes. |
2.29 |
2020/10/19 |
2.29.3 |
2021/3/9 |
Experimental SHA-256 support Negative refspecs New git shortlog tricks |
2.28 |
2020/7/27 |
2.28.1 |
2021/3/9 |
Introducing init.defaultBranch Changed-path Bloom filter |
2.27 |
2020/6/1 |
2.27.1 |
2021/3/9 |
|
2.26 |
2020/3/22 |
2.26.3 |
2021/3/9 |
Protocol version 2 is now the default Some new config tricks Updates to git sparse-checkout |
2.25 |
2020/1/13 |
2.25.5 |
2021/3/9 |
Sparse checkout management made easy[29] |
2.24 |
2019/11/4 |
2.24.4 |
2021/3/9 |
|
2.23 |
2019/8/16 |
2.23.4 |
2021/3/9 |
|
2.22 |
2019/6/7 |
2.22.5 |
2021/3/9 |
|
2.21 |
2019/2/24 |
2.21.4 |
2021/3/9 |
|
2.2 |
2018/12/9 |
2.20.5 |
2021/3/9 |
|
2.19 |
2018/9/10 |
2.19.6 |
2021/3/9 |
|
2.18 |
2018/6/21 |
2.18.5 |
2021/3/9 |
|
2.17 |
2018/4/2 |
2.17.6 |
2021/3/9 |
|
2.16 |
2018/1/17 |
2.16.6 |
2019/12/7 |
|
2.15 |
2017/10/30 |
2.15.4 |
2019/12/7 |
|
2.14 |
2017/8/4 |
2.14.6 |
2019/12/7 |
|
2.13 |
2017/5/10 |
2.13.7 |
2018/5/22 |
|
2.12 |
2017/2/24 |
2.12.5 |
2017/9/22 |
|
2.11 |
2016/11/29 |
2.11.4 |
2017/9/22 |
|
2.1 |
2016/9/2 |
2.10.5 |
2017/9/22 |
|
2.9 |
2016/6/13 |
2.9.5 |
2017/7/30 |
|
2.8 |
2016/3/28 |
2.8.6 |
2017/7/30 |
|
2.7 |
2015/10/4 |
2.7.6 |
2017/7/30 |
|
2.6 |
2015/9/28 |
2.6.7 |
2017/5/5 |
|
2.5 |
2015/7/27 |
2.5.6 |
2017/5/5 |
|
2.4 |
2015/4/30 |
2.4.12 |
2017/5/5 |
|
2.3 |
2015/2/5 |
2.3.10 |
2015/9/29 |
|
2.2 |
2014/11/26 |
2.2.3 |
2015/9/4 |
|
2.1 |
2014/8/16 |
2.1.4 |
###### |
|
2 |
2014/5/28 |
2.0.5 |
###### |
|
1.9 |
2014/2/14 |
1.9.5 |
###### |
|
1.8 |
2012/10/21 |
1.8.5.6 |
###### |
|
1.7 |
2010/2/13 |
1.7.12.4 |
###### |
|
1.6 |
2008/8/17 |
1.6.6.3 |
###### |
|
1.5 |
2007/2/14 |
1.5.6.6 |
###### |
|
1.4 |
2006/6/10 |
1.4.4.5 |
2008/7/16 |
|
1.3 |
2006/4/18 |
1.3.3 |
2006/5/16 |
|
1.2 |
2006/2/12 |
1.2.6 |
2006/4/8 |
|
1.1 |
2006/1/8 |
1.1.6 |
2006/1/30 |
|
1 |
2005/12/21 |
1.0.13 |
2006/1/27 |
|
0.99 |
2005/7/11 |
0.99.9n |
###### |
|
|
ローカル(PC)でgitリポジトリ環境を作る
1.準備
Git公式から最新版Gitインストーラーをダウンロードしてインストール
任意の場所にフォルダを作成
C:\git
mkdir repository
C:/git/repository
ベアリポジトリ作成
git init --bare C:/git/repository
dir C:/git/repository
⇒ dirやlsコマンドで、同フォルダにhooks, infoなどのファイル、フォルダが生成されていれば良い
2.既存フォルダのファイルをGit管理下にする
既存フォルダでGit初期化を行う
D:/source
┗ file.txt
git init
D:/source/.git
Git登録
git add
Commit
git commit -m "コメント"
ブランチ作成
git branch -M main
※ main はブランチ名。任意でよい。
プッシュ
git remote add origin C:/git/repository
※ Windowsの場合はドライブレターからのフルパスで良い
githubがプッシュ先の場合は下記のようなコマンドになる
git remote add origin
git@github.com:アカウント名/リポジトリ名.git
以後のプッシュ
git push origin リモートブランチ:ローカルブランチ
git push origin master:master
最終更新:2023年07月05日 16:35