LoginSignup
4
4

More than 5 years have passed since last update.

Git clone したリポジトリをsourcetreeに追加する

Last updated at Posted at 2015-07-07

手順

sourcetreeの「新規リポジトリ」>「既存のローカルリポジトリを追加」
sourcetree.jpg

あとはcloneしたディレクトリを選択

origin set-url を変更

git remote set-url origin https://example.com/git/username/project_name.git
git push -u origin master

Gitbucketへ登録する際にこの手順だとsourcetreeからのプッシュ時にエラーとなってしまった。なんでだろ・・・

とりあえずの対策

ディレクトリをからにしないとですが・・・
sourcetreeの「新規リポジトリ」>「URLからクローン」を選択しclone URLを指定したらできた。

4
4
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
4
4