Check branch: git remote -v // origin [email protected]:siddharth018/Laravel7MultiCategory.git (fetch) // origin [email protected]:siddharth018/Laravel7MultiCategory.git (push) Example: git remote set-url origin [email protected]:siddharth018/Laravel7MultiCategory.git git remote -v // origin [email protected]:siddharth018/Laravel7MultiCategory.git (fetch) // origin [email protected]:siddharth018/Laravel7MultiCategory.git (push) (see git help remote) or you can just edit .git/config and change the URLs there. You’re not in any danger of losing history unless you do something very silly (and if you’re worried, just make a copy of your repo, since your repo is your…
git remote remove origin
First you’ll want to cd into your .ssh directory. Open up the terminal and run: cd ~/.ssh && ssh-keygen Next you need to copy this to your clipboard. On OS X run: cat id_rsa.pub | pbcopy
Run-in terminal ssh-keygen -t rsa -b 4096 -C “[email protected]” Now check your file Enter file in which to save the key (/Users/siddharthshukla/.ssh/id_rsa): cat id_rsa.pub copy your code and put inside of setting SSH keys New SSH key
create the branch using Github. git checkout -b new-branch-name old-branch-name; push files in GitHub. git push -origin branch-name; Switch branch using Github. git checkout branch_name;