Tag: git-push

65 votes
21 answers
2.9K views
Remote origin already exists on 'git push' to a new repository

I have my project on GitHub at some location, [email protected]:myname/oldrep.git. Now I want to push all my cod

avatar
Thurman
0 1 0 9
asked 07 September, 2021
57 votes
26 answers
1.3K views
Git push requires username and password

I cloned a Git repository from my GitHub account to my PC. I want to work with both my PC and laptop, but wit

avatar
Roger
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
1.3K views
Is there a way to cache https credentials for pushing commits?

I recently switched to synchronizing my repositories to https:// on GitHub (due to firewall issues), and it as

avatar
Denese
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
983 views
How do you push a tag to a remote repository using Git?

I have cloned a remote Git repository to my laptop, then I wanted to add a tag so I ran git tag mytag master

avatar
Robt
0 1 0 9
asked 07 September, 2021
58 votes
16 answers
374 views
How do I push a new local branch to a remote Git repository and track it too?

I want to be able to do the following: Create a local branch based on some other (remote or local) branch (via

avatar
Roger
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
2K views
How do I delete a Git branch locally and remotely?

I want to delete a branch both locally and remotely. Failed Attempts to Delete a Remote Branch $ git branch -d

avatar
Corey
0 1 0 9
asked 07 September, 2021