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
5496689 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 601831
Score of 4290
54 answers
3818577 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
432808 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
333815 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
185307 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
188432 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
49101 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
65619 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
65310 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
11592 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
12280 views
Score of 7
2 answers
8410 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
4678 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
12152 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 ...
Score of 9
3 answers
2760 views
How to save in vim a remote file asynchronously?
Edit a remote file with
vim scp://remote/file
Saving the file with :w blocks the editor till the file changes are saved to the remote.
I was trying to use :Dispatch :write to avoid being blocked ...
- reputation score 10360
Score of 2
1 answer
8508 views
git commit & push in IntelliJ
How can I configure IntelliJ to commit and push in a single task (preferably a keyboard shortcut)?
When developing I'm always on a work-in-progress branch and use git commit nearly as often as saving ...
- reputation score 3387
Score of 3
1 answer
5018 views
Visual Studio Code will not auto push when I commit changes
I can commit loads of changes, but nothing gets to GitHub.
It’s only when I manually click the PUSH function from the menu that it pushes to GitHub.
How can I get it to do this automatically when I ...
- reputation score 2621
Score of 2
1 answer
3986 views
is there any way to make github desktop pull and push changes automaticcally
Automatic Push/Pull in Github Desktop
When working on Code in Visual Studio Git hub Desktop is my absolute favorite tool to use. It makes collaboration between me and my fellow programmers or even ...
- reputation score 35
Score of 3
1 answer
1134 views
Git client with "autopush"?
Does a git client exist (preferably for windows) with autopush functionality?
As in automatically pushes to origin/master on commit.
I am aware this goes against the whole git methodology and can be ...
- reputation score 5811
Score of 2
1 answer
1432 views
Gitosis / Git does not execute post-commit hook
I just set up Trac and Gitosis and wanted to control the ticket workflow with the commit messages.
Unfortunately my post-commit hook is not executed. If I execute it on command line (as gitosis user) ...
- reputation score 664
Score of 1
1 answer
1300 views
Zeppelin + GitHub - Auto Push?
I know in Zeppelin you can utilize Git on your notebooks. I also know how to take that local git repos and push it up to Github. But from what I've seen in the Zeppelin app, users can commit all they ...
- reputation score 688
Score of 1
1 answer
1404 views
git repo config for multiple environments
New to git and looking for some ideas on how best to configure my repository(s). We currently dont use anything. I need to support 6ish versions of the same codebase (demo,dev,test,integration,QA,PROD)...
- reputation score 137
Score of 0
3 answers
951 views
On commit master , update code in multiple repositories
On committing my master branch to my Git repository, I need to update that latest code to multiple other repositories.
How can I do this?
git commit -u origin master
eg: if I have repository 1,2 and ...
Score of 1
2 answers
929 views
Sync github upstream with fork
After a branch has been merged to master on my fork I want to automatically merge master into the upstream repo's master.
If I can't do this, can I automatically create a new pull request from my fork'...
- reputation score 75
Score of 1
1 answer
605 views
How can I `git push` from a script initiated by a cronjob?
I have the following script:
cd ~/path/to/repo ;
git pull ;
git add . ;
git commit -m "autocommit for repo" ;
git push ;
cd ~ ;
I have it run in a cronjob every minute. It works up until ...
- reputation score 3975
Score of 0
2 answers
441 views
Is there a way for Jenkins or Crontab to push commits automatically to a GitHub repo?
I've been trying to push commits created with a simple shell script:
cd $dir
git add . && git commit -m "Test commit" &&
git push --all origin
The script does the job ...
Score of 2
1 answer
253 views
Deploying when push to git
I need to push the code automatically when there is a push in my repository. Until now i used DeployHQ, but recently i moved to a new hosting company which is using FTPS for file transfer. But ...
- reputation score 10762
Score of 1
1 answer
170 views
Automatically synchronising to remote git repository
Is there an automatic way to synchronise a local git repository with a remote one, for backup?
Basically the structure that I'm envisaging is this:
"Master" repository on a central server
User A's ...
- reputation score 13231
Score of 0
0 answers
119 views
How to sync data between local git repo and heroku remote repo..?
I want to sync data between local git repo and heroku git how can i do that.
and i want to automate this whenever i want commit changes to local repo it will automatically pushed to heroku ?
- reputation score 865