Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,564
Community Members
 
Community Events
184
Community Groups

Unable to push to remote after interactive rebase(amend commit message)

Hello,

 

I have a local branch which has been pushed to remote branch already.

After pushing to remote, I had to change the commit message. Therefore I used interactive rebase to change the commit message in my local branch. When trying to push this new commit message, the remote seems to be detached from my local head ie. I can not see my local branch name in the Push dialog box.

I used the terminal to force push and ended up with this fatal message:

fatal: '<branch_name>' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I would appreciate if someone could share their experience in a similar situation.

I would like to know how I can push my local branch(with changed commit message) into the remote branch.

 

Thanks in advance!

 

1 answer

1 accepted

0 votes
Answer accepted

!!Solved!!

This situation cannot be solved from the Sourcetree Gui unfortunately. The correct terminal command would be:

git push origin <local_branch_name>:<remote_branch_name> -f

if the local_branch_name = remote_branch_name

git push origin head -f

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events