Easiest Solution... Drumm Roll  ... git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and godo a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The branch you just created in your local environment  , and the remote non-existing branch where you are trying to push  , must have the same name.

Easiest Solution... Drumm Roll  . git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and go a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The branch you just created in your local environment  , and the remote non-existing branch where you are trying to push  , must have the same name.

Easiest Solution... Drumm Roll... git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes, and do a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The branch you just created in your local environment, and the remote non-existing branch where you are trying to push, must have the same name.

Easiest Solution... Drumm Roll . git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and go a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The brunchbranch you are currently onjust created in your local environment , and the remote non-existing branch where you are trying to push , must have the same name.

Easiest Solution... Drumm Roll . git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and go a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The brunch you are currently on local , and the remote non-existing branch where you are trying to push , must have the same name.

Easiest Solution... Drumm Roll . git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and go a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The branch you just created in your local environment , and the remote non-existing branch where you are trying to push , must have the same name.

Source Link
sapy
  • 8.4k
  • 7
  • 47
  • 58

Easiest Solution... Drumm Roll . git version 2.10.1 (Apple Git-78)

1) git checkout -b localBranchNameThatDoesNotExistInRemote

2) Do your changes , and go a git commit 

3) git push origin localBranchNameThatDoesNotExistInRemote --force

N.B. - The brunch you are currently on local , and the remote non-existing branch where you are trying to push , must have the same name.