git remote add origin https://github.com/vineeta-chauhan/testing-.git
to push code when local branch is not available on remote repository(to create that local branch on remote repo)
used to delete branch from remote repo as well as from local, if you are not in that branch which you want to delete( in this case it delete branch from local as well as from remote repo) but if you are in same branch which you want to delete then it only delete frome remote not from local
git branch -m old_branch new_branch # Rename branch locally
git push origin --delete old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
You can use git-credential-store to store your passwords unencrypted on the disk, protected only by the permissions of the file system.
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]