LoginSignup
0
0

More than 1 year has passed since last update.

Gitコマンド一覧メモ

Last updated at Posted at 2021-07-09

gitコマンド

gitクローン

git clone [リポジトリ] [ディレクトリ]

git clone 
https://github.com/ユーザID/ディレクトリ.git copy

ローカルリポジトリを作成

git init

インデックスに追加

git add .

コミット

git commit -m “コメント記載”

リポジトリのURLを指定します。

$ git remote add origin https://github.com/ユーザーID/push_test.git

プッシュ

git push origin master
git push -f origin master

プル

git pull origin master
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