0
0

Gitコマンドの備忘録

Posted at

Git hubに登録したので、Gitコマンドを忘れないようにメモしておく。

はじめに

事前にGitをインストールする
Windowsの場合はGit bashを使ってユーザを登録する

$ git config --global user.name "xxxx"
$ git config --global user.email "xxxxxx@gmail.com"

ブランチをクローンする

Git hubのコードURLをコピーし、'git clone'する

$ git clone https://github.com/XXXX/XXXXXX.git

ブランチへプッシュする

コードを修正したら、コミットメッセージを記入して、プッシュする

$ git commit -m " コメント"
$ git push

※pushする際にpushするブランチを指定する方法があったと思うが、それは忘れた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0