Linked Questions
32 questions linked to/from How can I automatically push after committing in Git?
Score of 0
0 answers
66 views
When I commit to a local git repository, I want it to automatically push to the repository on Bitbucket [duplicate]
I have a local git repository. I commit a change using git commit -a and it updates the local repository. So far so good.
I would like it so when I do this it also automatically pushes to my remote ...
Score of 6918
36 answers
5487653 views
How do I change the URI (URL) for a remote Git repository?
I have a repo (origin) on a USB key that I cloned on my hard drive (local). I moved "origin" to a NAS and successfully tested cloning it from here.
I would like to know if I can change the ...
- reputation score 601791
Score of 4289
54 answers
3815312 views
How do I get the current branch name in Git?
How do I get the name of the current branch in Git?
user avatar
user654460
Score of 233
14 answers
432517 views
Configuring Git over SSH to login once
I have cloned my git repository over ssh. So, each time I communicate with the origin master by pushing or pulling, I have to reenter my password. How can I configure git so that I do not need to ...
- reputation score 14808
Score of 240
5 answers
333604 views
Emulating a do-while loop in Bash
What is the best way to emulate a do-while loop in Bash?
I could check for the condition before entering the while loop, and then continue re-checking the condition in the loop, but that's duplicated ...
Score of 101
15 answers
185046 views
How can I check if ssh-agent is already running in Bash?
I have a sample sh script in my Linux environment, which basically runs the ssh-agent for the current shell, adds a key to it and runs two Git commands:
#!/bin/bash
eval "$(ssh-agent -s)"
...
- reputation score 4146
Score of 189
5 answers
188202 views
Git - How to use .netrc file on Windows to save user and password
Is it possible to use a .netrc file on Windows when I'm using Git to clone a remote repository with HTTP and user - password?
- reputation score 1955
Score of 78
4 answers
49051 views
Visual Studio Code push automatically
Is it possible to make git push after commit automatically?
Now I need to click on push after commit manually and this is not very comfortable.
- reputation score 8329
Score of 26
7 answers
65594 views
Jenkins: what is the correct format for private key in Credentials
I'm creating a job in Jenkins 2.152 running on Windows Server 2016 which needs to pull from a git repo hosted on bitbucket.org.
I tested the ssh key through git-bash so I know it works and there is no ...
Score of 28
4 answers
65297 views
Make a shell script to update 3 git repos
I am working with 5 repos that I have cloned in my development environment.
When I want to update a git repo, I enter the folder /home/adrian/repo1/ and do:
git checkout master
git pull origin ...
Score of 10
2 answers
11590 views
How to configure automatic pushing?
How do I configure automatic push in Mercurial and Git?
Sometimes I forgot to push in a computer, and when I move my location, I'm out of the sync with the good code. Is there a way to mercurial and ...
Score of 11
2 answers
12278 views
Score of 7
2 answers
8402 views
Sublime Merge SSH Failing when Key has password
When I try to clone a repo I get a git failed with exit code 128.
Also when I try to push/pull I get a [email protected] public key denied.
In my ~/.ssh folder I have a config file that looks like this:...
- reputation score 9529
Score of 7
2 answers
4675 views
Git - How to auto push changes in a directory to another branch
Complete question rewrite
So I thought I was explaining this question very simply and direct but it seems I oversimplified to much, so here is all the extra details. Hopefully this helps everyone see ...
- reputation score 1046
Score of 3
1 answer
12150 views
How To Set Up Auto Updating Git
I'm using Github to store my projects, and would like to know if there is a way for me to get my repository to automatically update in real time.
To clarify what I mean, I'm currently using the good ...