LoginSignup
0
0

More than 3 years have passed since last update.

git 自分用

Last updated at Posted at 2020-11-19

gitからcloneしてcheckout

git clone xxx
git checkout -b ブランチ名

gitをpushするまで

git add .
// VSCodeで不要なコミットを取り除く
git commit -m "コメント" -m "コメント2"
git push origin ブランチ名

他の人のソースを入れる

git pull origin develop

自分のソースをリセットする

git checkout HEAD ファイル名

違うブランチからソースを取り込み新しいブランチにソースを盛り込む

git checkout xxx_branch
// 移動する
git pull origin xxx_branch
// 最新のブランチ情報を引っ張ってくる
git checkout -b yyy_branch
// 新しくブランチを作成する

gitでチェックアウトをし、対象のブランチをそのままチェックアウトする。

git clone url -b branchName
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