teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

リモートリポジトリのURLの表記について修正しました

2020/12/25 12:08

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,7 @@
10
10
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
11
11
 
12
12
  git pullすると良いと聞いたのでgit pull origin masterは問題なく実行できました。
13
- > From https://github.com/***
13
+ > From https://github.com/aaa
14
14
  * branch master -> FETCH_HEAD
15
15
  Already up to date.
16
16
 

2

リモートリポジトリのURLの表記について修正しました

2020/12/25 12:08

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

title CHANGED
File without changes
body CHANGED
@@ -1,9 +1,9 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
3
  ローカルで作業が進んだので、リモートリポジトリのchoブランチにgit pushしたいのですが、git push origin master:choでやろうとしたら以下のようなエラーが出てgit pushできませんでした。
4
- > To https://github.com/***
4
+ > To https://github.com/aaa
5
5
  ! [rejected] master -> cho (non-fast-forward)
6
- error: failed to push some refs to 'https://github.com/***'
6
+ error: failed to push some refs to 'https://github.com/aaa'
7
7
  hint: Updates were rejected because a pushed branch tip is behind its remote
8
8
  hint: counterpart. Check out this branch and integrate the remote changes
9
9
  hint: (e.g. 'git pull ...') before pushing again.
@@ -20,9 +20,9 @@
20
20
  ### 発生している問題・エラーメッセージ
21
21
 
22
22
  ```
23
- > To https://github.com/***
23
+ > To https://github.com/aaa
24
24
  ! [rejected] master -> cho (non-fast-forward)
25
- error: failed to push some refs to 'https://github.com/***'
25
+ error: failed to push some refs to 'https://github.com/aaa'
26
26
  hint: Updates were rejected because a pushed branch tip is behind its remote
27
27
  hint: counterpart. Check out this branch and integrate the remote changes
28
28
  hint: (e.g. 'git pull ...') before pushing again.
@@ -34,8 +34,8 @@
34
34
  ちなみにローカルのgitの環境はこんな感じです。
35
35
  % git remote -v
36
36
  >
37
- origin https://github.com/*** (fetch)
37
+ origin https://github.com/aaa (fetch)
38
- origin https://github.com/*** (push)
38
+ origin https://github.com/aaa (push)
39
39
 
40
40
  % git branch
41
41
  > cho

1

リモートリポジトリのURLが載ってしまっていましたが、今回の質問の大筋には関係ないかと思い、修正しました。

2020/12/25 12:07

投稿

AlbertVerlnich
AlbertVerlnich

スコア2

title CHANGED
@@ -1,1 +1,1 @@
1
- git pushができません
1
+ git pushのエラーなおりません
body CHANGED
@@ -3,7 +3,7 @@
3
3
  ローカルで作業が進んだので、リモートリポジトリのchoブランチにgit pushしたいのですが、git push origin master:choでやろうとしたら以下のようなエラーが出てgit pushできませんでした。
4
4
  > To https://github.com/***
5
5
  ! [rejected] master -> cho (non-fast-forward)
6
- error: failed to push some refs to 'https://github.com/nozomushimaoka/ATRank'
6
+ error: failed to push some refs to 'https://github.com/***'
7
7
  hint: Updates were rejected because a pushed branch tip is behind its remote
8
8
  hint: counterpart. Check out this branch and integrate the remote changes
9
9
  hint: (e.g. 'git pull ...') before pushing again.
@@ -22,7 +22,7 @@
22
22
  ```
23
23
  > To https://github.com/***
24
24
  ! [rejected] master -> cho (non-fast-forward)
25
- error: failed to push some refs to 'https://github.com/nozomushimaoka/ATRank'
25
+ error: failed to push some refs to 'https://github.com/***'
26
26
  hint: Updates were rejected because a pushed branch tip is behind its remote
27
27
  hint: counterpart. Check out this branch and integrate the remote changes
28
28
  hint: (e.g. 'git pull ...') before pushing again.
@@ -34,8 +34,8 @@
34
34
  ちなみにローカルのgitの環境はこんな感じです。
35
35
  % git remote -v
36
36
  >
37
- origin https://github.com/nozomushimaoka/ATRank (fetch)
37
+ origin https://github.com/*** (fetch)
38
- origin https://github.com/nozomushimaoka/ATRank (push)
38
+ origin https://github.com/*** (push)
39
39
 
40
40
  % git branch
41
41
  > cho