LoginSignup
4
4

More than 5 years have passed since last update.

Backlog Gitの使い方(SSH)

Last updated at Posted at 2018-08-17

いつもどおりのHTTPSでやろうとしたけどわからず.netrcもうまくいかずだったのでカッとなってSSHで対応した

ssh鍵を作る

ssh-keygen を実行
~/.ssh/id_rsa.pub と ~/.ssh/id_rsaが作られる

~/.ssh/id_rsa.pubの内容をbacklogに登録

git初期対応

git init

.git/configを以下のようにする

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "originbacklog"]
    url = BacklogのRepositoriesでSSHでの項目
    fetch = +refs/heads/*:refs/remotes/originbacklog/*

git remote add 〜でもいいとは思います

add・commit・pushする

echo "hello" > hello.md
git add hello.md
git commit -m '1st commit'
git push originbacklog/master

fetch

git fetch originbacklog master

pull

git pull originbacklog master

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