I have forked a repo from Github and then created a branch named process and i have started working on this repository and i have made 7 commits with slight modifications from the original master on my branch progress
.
Now i pushed the changes to the github and it showed me this This branch is 7 commits ahead, 16 commits behind jwasham:master.
Now i solved this by checking out my process branch and added upstream
$ git branch --set-upstream-to=origin progress
and then i made rebasing so my changes appear on top of those commits which were made on the original repo and done like this
$ git pull --rebase
First, rewinding head to replay your work on top of it...
Fast-forwarded process to 266048d8326bde6f1cb137d8b898fc2fff645f94.
But when i tried to push it to the github it showed me
$ git pu
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/uppusaikiran/repo_name.git
0569dcf..266048d process -> process
And clearly nothing has changed and still i have same problems This branch is 7 commits ahead, 16 commits behind jwasham:master.
How to approach this problem , where exactly i went wrong and how to update my fork with my changes on top of the updates?
Simplified Question as suggested by many that question was difficult to understand
- On Github i choose a project
- I wanted to work on , so i forked
- I cloned my fork
- Created a branch
progress
- Started working on the branch
- Made some tiny changes without effecting any deletions Link to what i have done
- Commited and pushed to my
progress
branch - In the mean time Owner(Original repo) updated his repo so my fork got outdated with original,but ahead by some commits which are my commits
- So This left me like this
7 commits ahead 16 commits behind jwasham:master
- All i wanted to is align with repo commits and also my commits should be on top of updated fork and these commits does not cause conflicts