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
0answers
10 views

Using SSH key in bitbucket?

I'm trying to add SSH key to bitbucket.org account, but with no success. I added my public key in bitbucket profile settings, then changed my remote URL to be SSH. But trying to connect to remote, ...
-1
votes
1answer
32 views

Red Hat command returns, “-bash: sudo: command not found” when running “sudo git”

I’m following a GoDaddy help tutorial in order to install “Let’s Encrypt” certificate for my website. So I connected to my server using SSH via PuTTy and when typing the first command: sudo git ...
5
votes
1answer
3k views

Git - Error invalid path

I have been working for so long on a mac and have committed it looks like a file like this: C:/Csmart/files/companies/19/migration/CompanyDataEntry.xls This file does not exist in the repository. ...
0
votes
2answers
15 views

SSL certificate problem: self signed certificate in certificate chain

Behind a firewall, using chrome, I am able to access a github repository like so: https://github.com/Squirrel/Squirrel.Windows Chrome uses our certificate for this access. If I try to access the same ...
0
votes
2answers
38 views

Transfer git repositories by copying

I wanted to transfer many git repos from my old Windows 7 machine (git 2.6.3.windows.1) to the new one under Ubuntu 16.04 (git 2.7.4). Since not all of them had a remote repos I decided simply copy ...
138
votes
11answers
127k views

How do I ensure Git doesn't ask me for my GitHub username and password?

I am working with a repo on GitHub and everytime I try to push something, it asks for my GitHub username and password. I don't want it doing that. I tried the instructions on setting your email in ...
0
votes
0answers
3 views

How to set default merges commits with no fast-forward in Atlassian SourceTree

Is there a way in settings or config files to make this checkbox to be marked for every merge?
0
votes
0answers
13 views

How do stop the OpenSSH window from continuously prompting me for my passphrase?

I'm using the git bash terminal on Windows 10 to work with repos. When I use a repo where I used SSH to connect to the remote repo, I get an OpenSSH dialog that requests my passphrase with 'Enter ...
0
votes
0answers
15 views

Make git NOT store object files in the .git directory

I would like to use git to track change history messages and hashes of files to track changes, but I don't want it to store the objects in the .git directory. Why? Because putting 4TB in a git ...
1
vote
1answer
14 views

Is it possible to have meld open all files at once when used with “git difftool”?

Meld is capable of loading many files at once (in tabs). However when used with git difftool, Git will ask if you want to view each file (which can be slow and annoying to have to keep opening and ...
3
votes
2answers
3k views

GIT Identity file not accessible: No such file or directory

Host github.com git HostName github.com User git IdentityFile ~/.ssh/github # I've tried also /home/freinn/.shh/github There's no /home/freinn/github file created, have I to create it? That'...
81
votes
5answers
114k views

How to reset master to origin/master?

Can I do following in a simpler way? git checkout origin/master git branch -D master git branch master git checkout master
0
votes
0answers
21 views

Recommendation of CI Tools for JavaScript package

My company is building a javascript library that works very much like a google analytics javascript package: Our customers are adding a <script> tag. The javascript code is running against our ...
10
votes
3answers
5k views

vim not loading _vimrc file when launched from git bash

I have downloaded and installed git for windows (msysgit) and frequently used the included git bash. Whenever I run vim from git bash my _vimrc file is not loaded because there is syntax highlighting ...
0
votes
0answers
8 views

How to change the template of a gitbook?

Gitbook Templates I began with the basic format, but released later that I'll need to made the switch to 'science' for built in TeX support. TeX appears fine within the editor, but not in 'read' ...
1
vote
1answer
15 views

Github not verifying with OpenPGP key?

I generated a public/private key pair using GnuPG (following Github's instructions) and am getting the following error when trying to push my commit to a newly created repository: git push origin ...
3
votes
1answer
4k views

Downloading big Git repos on Windows without getting “out of memory”

When I try downloading or cloning a large Git repo I keep getting an "out of memory" error like so: error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to ...
2
votes
1answer
321 views

Skip username prompt when using git

Is there a way to skip the username prompt when I git pull? I read about skipping the entire authentification e.g. with the help of keys or ssh agents. However, I only want to send my username. Is ...
0
votes
1answer
17 views

Undo 'git push -f' from machine that doesn't have the cloned history

So, backstory. My hard drive died on machine A. Almost all of my work was already pushed to GitHub and all was dandy on that front, save one repository. So, upon realizing this, I found out, "hey, ...
0
votes
0answers
24 views

Cleaning up big bare git repository fails

I can't clean up a git repo. If I try to, I get this error message: $ git gc Counting objects: 8828, done. fatal: Cannot handle files this big error: failed to run repack If I google it, there are ...
0
votes
0answers
22 views

zsh git status shows all files in repo as modified (when they are no )

My setup: Windows 10, cygwin, miTTy and oh-my-zsh. Problem: when I get to a folder of a git repository it takes a long time (3-15 seconds) for the commandline to get to this folder. It depends on the ...
1
vote
1answer
38 views

git clone fatal: 'origin' does not appear to be a git repository for VMware vmhgfs share

I'm getting this "fatal: 'origin' does not appear to be a git repository" error while doing git clone (go get) . $ git clone https://github.com/andybalholm/cascadia /path/to/Go/src/github.com/...
0
votes
1answer
19 views

share svn and git repo's between windows and linux

I dual boot my machine (Windows 7 and Ubuntu 16.04). If I were to assign a separate partition just to hold my software repositories, what's the best partition type to share the same git and svn ...
0
votes
0answers
9 views

Linux “zombie files” at every deploy

I'm using deploybot to deploy my application. It pulls from bitbucket to my server. I've been experiencing a weird problem lately. At every deploy, it revives old files that have been deleted. I ...
0
votes
0answers
14 views

Git am not working (am not a git command) without sudo Ubuntu 14.04

I'm trying to apply some patches using git-am but it's not working. The exact message I get is: git: 'am' is not a git command. See 'git --help'. Anyone have any suggestions? It used to work, and ...
1
vote
0answers
10 views

Change location of .gitconfig in Visual Studio

Visual Studio 2015 has Git integration, but it picks up a .gitconfig file used in my Cygwin install that has some problems (for one thing, it is a symlink, but even it if was a normal file it would ...
0
votes
0answers
15 views

Git installs to a network drive

I'm using Git at work (on Windows 8), but we have a variable in AD called 'HomeDrive', which is annoyingly set to a network drive. Git has decided to install the git bash and other utilities here, ...
2
votes
3answers
2k views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
1
vote
1answer
20 views

Switching on / off X11 forwarding for remote firefox / git

I'm using Ubuntu16 inside a Docker image on top of CentOS6 in order to be able to run certain desktop apps that doesn't run on top of CentOS6. As an example, to run the Dartium browser, I do: ssh -X ...
4
votes
2answers
1k views

Execute git pre-commit hook only if files in certain directory modified

I am trying to create a bash script for a git pre-commit hook. Whenever a commit is made, I want to check if files in a certain directory are part of the staged files and if so, run a command (Grunt ...
0
votes
0answers
26 views

Git asks for private key password in cmd [duplicate]

I have tried to set up my ssh-keys on both the command prompt and git bash. What happens, is that everything works fine till I do a git <something>, and it asks for the password on my 'id_rsa'. ...
0
votes
0answers
17 views

How do you upload a file on gitlab via the web interface?

I'm on gitlab 7.13 and it says 7.9 has the drag and drop feature already. But I can't seem to figure out where it is. Some sites its on the drop down when you add a file, but I dont see anything. Am ...
0
votes
0answers
4 views

“git-receive-pack” isnt allowed to be executed

I know there are many similar questions on this site, but none of the solutions seems to be working for me. When I attempt to push code to my new git server, I always get the following error: "git-...
0
votes
3answers
24 views

Git: list all files in another branch that are not in the current branch?

git diff <other branch> <this branch> will show me all differences, but files that don't exist in the current branch have no special indicator in that list.
0
votes
1answer
49 views

Trying to get git's core.pager to work on both mingw and cygwin

I am trying to get git for Windows working identically in the mingw bash that comes with git for Windows and in my cygwin terminal. Right now, I cannot get the core.pager (which determines whether a ...
1
vote
5answers
2k views

How to use a text editor WITHIN the Command Prompt in a Windows OS?

I would like to be able to create and edit the text of a file, all from the command line. No pop-up window (like with notepad), just create the file and start editing. I know this can be done with ...
0
votes
0answers
10 views

How can I force git submodule update --init to skip errors

I have my folder with active projects I’m working on and all of them are versioned as git submodules. When I set up a new work environment, I clone my folder using --recursive (or clone it normally ...
18
votes
4answers
41k views

How do I disable password prompts when doing git push/pull?

Every time I want to push and/or pull from the terminal (in Linux) I have to enter a password. How do I remove this so that it pulls and/or pushes without the password?
8
votes
3answers
2k views

gVim as git editor under cygwin

I use msysgit and I'd like to have gvim as my git editor. I use cygwin bash instead of git bash. Running $ /cygdrive/c/Program\ Files\ \(x86\)/Vim/vim73/gvim.exe starts gvim. But if I set this ...
0
votes
1answer
39 views

Repo-wide configuration of git

How can i make a persistent git-config file for the whole repository? I know, that there is a system wide, a user and a repository configuration. What i want is a configuration wich is automatically ...
0
votes
1answer
8 views

Rebasing in Git (Fetch and then..?)

I have been working locally on a new computer to which I transferred all data from my old computer via external drive. I decided to try to rebase my work with what I have already on my server. First ...
0
votes
0answers
19 views

Does Github Desktop understand when changes have been committed on command line?

I'm trialing Github desktop for our designers, so they can easily work within a repository that devs do as well. Github desktop seemed OK, but I just made 2 commits via the cmd line rather than the ...
0
votes
2answers
3k views

How to Compile and Install Remmina From GIT Repository for Ubuntu (KDE)?

Gentlemen, I would like to compile a version of Remmina directly from the GIT repository, because I need to apply a patch to fix a problem. With the command sequence below I can compile it and ...
2
votes
1answer
101 views

GIT from source: fatal: Unable to find remote helper for 'https'

Due to me not having root rights, I compiled git from source locally. My distro is OpenSUSE 13.1. Googling the error fatal: Unable to find remote helper for 'https' It was suggested that curl is not ...
0
votes
1answer
12 views

cloned repo with same name as a local folder and it deleted everything inside

Hi there I cloned a repo with the name COMP to documents in my mac with and I forgot there was a folder called COMP there also. I didn't read the warning properly and now all the things that were ...
0
votes
0answers
34 views

what to do when I forgot my master password on smartgit?

I'm using SmartGit 7.1.3 for take care of a github repository. I put a master password on the smartgit when I was setting the repository. Next I forgot my master password then I didn't sync with my ...
1
vote
3answers
103 views

How to add GIT and GITHUB as safe applications to Bit Defender

I use BIT DEFENDER internet security 2016 When I'm trying to commit/push/pull/fetch/other I get told Bit Defender has blocked it. I need to be able to mark GIT as safe (to white list it) Searching ...
1
vote
0answers
14 views

Git push and pull with remote Respository [closed]

So, I'm working on this project, but I'm currently stuck ... I work on a Linux Server and have to push/pull from a remote windows server. But nothing seems to work. What could I do? Which commands ...
0
votes
0answers
24 views

how to shorten git to g by using a alias

I am running git 2.7.2.windows.1 and I have edited my .bashrc file to have this line alias g='git' but when I type g status I get an error bash: g: command not found I even tried editing my ...
0
votes
1answer
11 views

How can I get a Git repo to push/pull when the Git server is behind a firewall?

My work place currently has a gitlab server behind their corporate firewall and currently their public dev sites are facing the internet. I can access the gitlab server only when I'm on their vpn. I ...