1.
$ cp -r repo repo_backup 2.
$ cd repo_backup and then vim .git/configdelete the old
[remote "origin"]3.
$ git remote add origin git@github.com:username/repo_name. Now you should see its corresponding lines in .git/config4. I want to push my local branch "b1" to a branch on github named "branch1", so I did
git push -u origin b1:refs/heads/branch1
No comments:
Post a Comment