Git is an open source distributed version control system originally designed and written by Linus Torvalds. It is generally used to keep track of source code for software projects. As a DVCS, Git provides powerful help with branching, merging, and distributed development.

learn more… | top users | synonyms

0
votes
1answer
15 views

Mysterious .bk file in OS X

I am trying to move some files in a git repository that I have in my Macbook (OS X 10.11.4). However, when I try to do a git mv, I get this: fatal: bad source, source=remote_plugins/...
1
vote
0answers
7 views

git file COMMIT_EDITMSG is set readonly after each commit

I'm using git on Windows 7 (my user is in the local admin group) with my dev project, but everytime I commit changes, the file .git/COMMIT_EDITMSG change too : It's content is replaced with the last ...
0
votes
0answers
12 views

What does Git GUI's “Match Tracking Changes” option do? [migrated]

What does the "Match Tracking Branches" option do in Git GUI? I haven't been able to see any immediate change from enabling the option. I assume it keeps local branches up to date with a repository's ...
0
votes
1answer
10 views

Installing sleuthkit on macOS sierra newest version fails

So I have a completely fresh install of macOS sierra updated to the newest version. When I run ./configure everything checks out and when I run make it returns this: Making all in tsk /Applications/...
-1
votes
0answers
23 views

How to prevent the creation of $Recycle.Bin

I have a script, which removes and freshly clones a git repo every x hours (to publish a small subset of its files via a webserver). It looks something like this: rm -fR /d/repo/ git clone --depth=1 ...
0
votes
1answer
21 views

Reconnect to accidentally stopped vi session (git commit)

On Cygwin, I accidentally pressed Ctrl+Z while in vim. I was editing a git commit message. This resulted in $ git commit -a [1]+ Stopped git commit -a I think the vi session is ...
1
vote
1answer
55 views

How to automate git tasks that require a commit message?

I'm writing a script to automate a Git task. Doing this manually, there are a few points where git opens vim to edit a commit message, and I have to type :wq. Is there a way to pre-send these ...
1
vote
2answers
70 views

How can I disable the MOTD when using Git over SSH on Windows?

I'm using Git on Windows, with a repository over SSH. Whenever I carry out any action I get the MOTD from the server (which is a legal warning from the company I work for). It looks like if I was on ...
0
votes
0answers
15 views

Fix incoherent timestamps of git commits

I am using a git repository for development involving some embedded devices that fail to keep wall clock time. So I end up with many commits having bad timestamps. This is no problem for git itself, ...
0
votes
1answer
29 views

Slow git clone speed, everything else +12Mbit/s

I'm trying to do a git clone, using ubuntu 16.04 server edition (don't ask, I needed a quick ubuntu for an openwrt build) and, while fast.com, xfinity's speedtest and speedtest.net both show 12Mbit/s ...
0
votes
0answers
22 views

Beyond Compare 4 with Git for windows (windows version 7 and above , git for windows version 2.11.0)

I am trying to use beyond compare to work with git for windows. I have followed the instructions on beyond compare site and added the required commands to the git config. git difftool seems to be ...
0
votes
1answer
30 views

How to fill info in a popup window in a shell script?

This is the usually commands that I use to deploy: cd app npm run build cd .. git push azure_3 master:master The last commands opens a popup window, where I have to enter a password: But I don't ...
1
vote
1answer
27 views

git annex, how to add git-sub directories

I have a scenario where I am moving my entire filestructure to git-annex. It contains my current projects, old project, media, personal items, and so on. As a result, it contains a lot of git ...
1
vote
1answer
82 views

Why do Atom, VSCode or Ava use more than one continuous integration services?

Continuous integration services, like Travis, CircleCI or AppVeyor have been proofed to be really useful to make sure that the project is working as intended automatically. But why do some ...
1
vote
1answer
33 views

Use local webserver or use Git

We are a starting company of 2 people and we are debating if we are going to use a local webserver or use a company GIT for wordpress websites. Local server with htdocs: We can go to: [localIP]/...
0
votes
0answers
24 views

Github for Windows won't start

The error log generated after the installation when i try to open the application reads : PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT) Common Language Runtime : 4....
1
vote
1answer
43 views

How do I set my local git identity?

This is my first setup of a repo on GitHub. I am running Linux, and my GitHub account has ssh-keys setup for my computer. When I try to run git commit, I get this error. git commit -m "examples" *** ...
-1
votes
1answer
126 views

Installing git on Bash on Ubuntu on Windows 10 with git bash for Windows already installed?

I've been using the git bash shell on Windows 10 for a while, but I only just installed the WSL/Bash for Ubuntu on Windows. BUW has an entire file system separate from my Windows files, and also its ...
0
votes
1answer
30 views

How do I only show git info in the $PS1 if I am only in a git directory?

I am using oh-my-zsh as my shell and I set up my $PS1 in the .zshrc to be as follows: PS1='[${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m:"}%{$fg_bold[blue]%}%c%{$reset_color%}$(git_prompt_info)]$ ' ...
0
votes
0answers
36 views

How to open git-shell from a specific folder in explorer ?

I have a new install of Windows 7 and I have installed the Github Dekstop GUI and the git-shell, I haven't installed git-bash. My questions is can I somehow link git-shell to the file explorer, so ...
0
votes
0answers
24 views

How does git notice a repo's contents changed?

If you you modify a previously clean file, git notices. It even does so if you set the modified data of that file back what what it previously was. Yet git doesn't read the data of all tracked files ...
2
votes
0answers
97 views

Setting up an encrypted git repository

Situation I would like to save data with git, encrypted (on some platform like bitbucket or github). Therefore the question: Question I am looking for different hassle-free ways on: How to set up ...
0
votes
0answers
13 views

Configure PHPStorm's setting repository via the command line

Is there a proper way of telling PHPStorm which repository to use as the settings repository, but via the command line? I'm writing a script to set up my new machine(s) and want to automate as much as ...
0
votes
0answers
50 views

How to configure the system ssh client with smartgit on Linux?

Under edit -> preferences -> authentication SmartGit allows us to clone private git repositories using the system SSH client: How do I configure it? I can't find any clear instructions for ...
0
votes
2answers
103 views

Executing linux programs (WSL) from Windows environment

I've installed git inside WSL and when i call the program it shows one error message: My intention is replace little by little tools like cygwin, Git for Windows and others by tools installed inside ...
0
votes
0answers
52 views

What is an appropriate value for git-daemon's --timeout option?

The git-daemon page has this to say: --init-timeout=<n> Timeout (in seconds) between the moment the connection is established and the client request is received (typically a ...
4
votes
0answers
278 views

git is extremely slow on windows

I'm not sure what have been changed, but my git started to be extremely slow on an average-sized repository. Others use git with the same repository on similar machines. Various commands working with ...
3
votes
2answers
35 views

Send env to a makefile target

I am trying to set an env var which is git sha1 commit for a makefile target. I am setting a lot of env vars and only this fails with no such file or directory error. I am hell confused. Please help ...
0
votes
1answer
65 views

Git clone from private network to remote through vpn ssh

I work on a private network with a git repository hosted there at git.mycompany.com. I have a remote server without access to this private network, I access it via ssh. To get my code to the server, ...
0
votes
0answers
11 views

Kasperky detect host file of git installation as a trojan

I recently installed Git version 2.11.0 for 64-bit without any problem, but Kaspersky detect the file hosts as Trojan.Win32.Hosts2.gen. I should add to exclusion rules or it is infected after the ...
1
vote
1answer
70 views

How do I stop Git Bash asking for more input?

Sometimes in Git Bash, I'll enter a bad command such as this (ex: mongoDB): db.people.insert([{name: 'John'}, {name: 'Marry'}]) asdasd a56sf sdfnbn since I pressed enter after 'john',it just accepts ...
0
votes
1answer
25 views

ConEmu disable Esc shortcut

I'm having problems with ConEmu because of the Esc shortcut that hides the window. When I use something that makes use of Esc, such as Vim or git commit, an escape hides the window instead of removing ...
0
votes
0answers
33 views

How to launch commands on startup in ConEmu

Let us assume that ConEmu lauches a git bash on startup. What I would like is that it also automatically runs a "git fetch && git status" on startup in this bash. I did found a way to write a ...
0
votes
0answers
17 views

Anyway to push a user's last commit via git through github?

I have a Organization account through github, and we recently had to remove a user from the organization. The user never pushed up the last bit of changes they made. We do not have access to the ...
1
vote
0answers
28 views

Jenkins Gerrit polling fails: constantly triggering builds

So we're using Gerrit Trigger (2.21.1) on our Jenkins CI build manager & using docker containers for the actual builds. The issue that has recently popped up in some of our branches the Gerrit ...
0
votes
0answers
36 views

FTP upload - Failed to open “C:\Apache24\…\uploads\image2.png” for reading because it is not a file

I would like to upload some files including .php and images to server. I tried it via Filezilla and PhpStorm. All php files has been transferred well, but some images throws me an error with text: ...
0
votes
0answers
29 views

rm -r crashes windows on cygwin

I have cygwin installed on my Windows 7 machine as part of installing git. Whenever I do rm -r inside Git Bash, the machine crashes. What could be causing this?
0
votes
0answers
10 views

Windows 7: Run “White space context menu” apps, with admin rights

When I am inside a folder and I right click on white space (not on any files/ folder) I see context menu. This context menu shows me a list applications I can open. I want these applications to be ...
0
votes
1answer
63 views

“git checkout — filename” vs “git checkout filename”

I know that I am meant to use git checkout -- filename to revert the changes made to a specific file. But one of my colleague just ignore the dashes and ended typing git checkout filename, effectively ...
1
vote
1answer
51 views

Git Installation Getting Stuck At the End On Windows 10

As you can see from the installation screenshot I'm trying to install Git on another drive (I don't want to install on C:) and its getting stuck. I'm installing it from the elevated command prompt as ...
2
votes
1answer
517 views

Git for Windows XP

Does anyone know how I can run Git on Windows XP? I have inherited an XP VM and need a way to version my code. Unfortunately updating is not an option due to license constraints
4
votes
1answer
150 views

Why is my git always force pushing?

It seems that my local installation of git (version 2.10.2) is such that whenever I issued git push, it is interpreted as git push -f. Is there a configuration variable that I could've set incorrectly ...
3
votes
1answer
31 views

Why does git complain that no GPG agent is running?

I have the gpg-agent.exe running, but when I try to git commit, it complains that the GPG agent can not be found: $ gpg-agent --daemon gpg-agent[17440]: a gpg-agent is already running - not starting ...
0
votes
0answers
36 views

get Git permissions for www-data user (php)

I have a friend who is running his own site. I have helped him and set up a private repo on gitlab to backup his site (something that has come in handy a few times now). The problem is he isn't really ...
0
votes
0answers
12 views

Django tutorial polls app using picture instead of text

Out of this repo If you need to : put content as an image, but not text; vote on the image with + and -; show result after third button is pressed; [ not included in Wanted result ] Where in the ...
0
votes
1answer
58 views

get GitHub link for file in checkout in CLI

I'm looking for a bash script to generate a GitHub link to a file from the filename in my local checkout. So if this script existed and was named github-link-for-file, it might work like this: $ git ...
2
votes
1answer
56 views

What is “Repository Group” in SourceTree?

Regarding the SourceTree app for Mercurial/Git version-control management, what exactly does the New Repository Group menu item do? What is a repository group? I looked through the doc and did some ...
0
votes
0answers
41 views

How to open all modified files in git with sublime text?

When I enter git status in iTerm, git will show a list of modified files. How do I open all of those modified files with sublime text 3? I have the command subl file_1 file_2 set to open those files ...
0
votes
0answers
13 views

How do I store developer “selvesets” I dont want to push to origin across developers

We just switched from TFSC to GIT, and there are some issues finding a good alternative to shelvesets The use case: As a developer we often want to change certain settings, so that our test ...
0
votes
1answer
30 views

how to get to the root of a directory

I am trying to compile a package in bash and the instructions in github says that: Switch to the root of the Phrasal repository and execute: gradle installDist I tried to determine the root ...