Linked Questions

Score of 0
0 answers
66 views

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 ...
  • reputation score 537
Score of 6918
36 answers
5496689 views

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 name of the current branch in Git?
user avatar
Score of 233
14 answers
432808 views

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

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 ...
  • reputation score 11188
Score of 101
15 answers
185307 views

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

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

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

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 ...
  • reputation score 1567
Score of 28
4 answers
65310 views

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 ...
  • reputation score 1481
Score of 10
2 answers
11592 views

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 ...
  • reputation score 4625
Score of 11
2 answers
12280 views

I really want to use GitHub, but my company has everything locked down. Now, I can only use Tortoise SVN through the HTTP protocol. Can I use GitHub the same way? If so, how?
  • reputation score 5268
Score of 7
2 answers
8410 views

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

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

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 ...
user avatar
Score of 9
3 answers
2760 views

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

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

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

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

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

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

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

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 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 ...
  • reputation score 213
Score of 1
2 answers
929 views

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

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

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 ...
  • reputation score 41
Score of 2
1 answer
253 views

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

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

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

15 30 50 per page
1
2