Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [git]

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.

-1
votes
0answers
10 views

“Git” root (master) and user configuration

I have created a repository as "master" branch and want to create multiple user as they can linked to my "master" at server. configuration should be like: --master |---user1 |---user2 ...
0
votes
0answers
10 views

Merge with Jenkins using pipeline

I try to merge branch ( master <-- newBranch ) with Jenkinsfile (pull request trigger) without conflict. When the Jenkins finishes running I get an error message on step3: "fatal: There is no ...
0
votes
1answer
32 views

Powershell command to backup all files except those which are unmodified in git source control

I have a work folder with many GIT and SVN repositories. Since the committed revisions are all available in the server, I just need to backup the unversioned files (modified but not committed, not ...
0
votes
0answers
26 views

How to run default version of start command?

I have installed Git and it provided different version of start command >where start D:\Apps\Git-2.10.2\usr\bin\start which does something different than default one. Is it possible to force ...
0
votes
1answer
9 views

How to track the password-store in git

I have started using pass, which creates a .password-store directory, with some .gpg files. Strangely enough: » git status On branch master nothing to commit, working directory clean Right after ...
0
votes
0answers
6 views

Have pager (less) re-run git log upon keypress

Sometimes I find it handy to have the git commit graph (given by git log) displayed side-by-side to the terminal pane I'm working in. git log is run with the less pager by default and only shows the ...
0
votes
1answer
85 views

How do I see what git creds are stored in osxkeychain

Looking at my git config it seems im using: credential.helper=osxkeychain Set it up a while back and I dont remember what creds are in there. How do I view the creds git is using in credential....
0
votes
0answers
881 views

Intermittently cannot push/pull from GitHub. Getting SSL errors

I'm having trouble pushing and pulling from GitHub. I checked status.github.com and they are not having problems. Occasionally I get this error: fatal: unable to access 'https://github.com/x/x.git/'...
0
votes
1answer
19 views

Debugging setup of cgit using apache 2.4 on my ubuntu 18.04 vps

Background I want to setup cgit using apache 2.4 on my ubuntu 18.04 vps. I already have the git server running with ssh access for myself. But I also want to have a web viewer for my repos. Debug ...
0
votes
1answer
20 views

Ignore certain changes in git diff

Is it possible to get a report from git diff or related commands that excludes a certain category of change? I've been asked to review a change where a huge number of files have undergone the ...
1
vote
0answers
31 views

Permission denied trying to git clone over ssh

Background I am trying to setup a git server on my vps with ssh access for me to clone, pull, push. Later I may add ssh clone access to anyone and a web repository browser. My vps runs Ubuntu 18.04 ...
0
votes
0answers
25 views

Unable to fetch particular commit hash from gerit error: Server does not allow request for unadvertised object

I have updated manifiest file with clone-depth=1 and when I try to do the repo sync I am getting the below error. Our gerit config has all the required setting changes for shallow clone The error: ...
0
votes
0answers
14 views

Extracting a file from another Git branch

I am in BravoOO-autogen Git branch. I want to find and extract the file Generate.pm from the branch SimpleOO, without switching away from BravoOO-autogen branch and without creating a new repository. ...
1
vote
0answers
26 views

Git/Linux - Pushing trough ssh on a Lan server(raspberry pi) not showing any errors

I am setting a Git server on my Raspberry pi 3 running Rasbian Lite.The 22 port is open and i can successfully ssh into it. On the client side i can git clone from the respositorry,the files are ...
1
vote
0answers
33 views

Why does Git not merge changes within a line? [migrated]

Assume I create a file with contents Hello World!. If I change it to Hi World! in one branch and to Hello World in another branch, merging them will result in a conflict. Consider the alternative ...
0
votes
1answer
33 views

How to get email notification for every git push issued on any github hosted repo

Let's say there is one github repo. (Public/Private) Many developers are working on same repo and doing git push. Now is there any way so once any user commits on that repo.I get email notification ...
0
votes
1answer
12 views

why git ignores my .data folder?

I have a .data folder: It seems ignored (no green mark) whereas I never added this folder to ignore list. I looked in ignore I can't find anything either. I even deleted .git and recreate a new repo ...
0
votes
0answers
51 views

How do I determine at which commit a non-versioned fork of a git repository was made?

The question How do I determine at which point in the git history the source tree (or a part of it) was copied? Not forked or cloned — git metadata is lost. The issue at hand I wish to determine at ...
0
votes
0answers
16 views

Can you set a file type or folder name to exclude being backed up in Windows 10?

I'm basically looking to save space and time by ignoring folders like .vs or .git automatically, rather than having to add them manually as excluded folders. Is there the possibility of adding a ...
0
votes
0answers
51 views

The agent has no identities results in no code deployment

I’m a developer that has taken over a website. Developer A who built the website setup Digital Ocean, Github and Forge where Forge deploys code from GitHub to Digital Ocean when the code is pushed to ...
0
votes
1answer
25 views

Git - 2 repositories

What I want to achieve? I have 2 repositories (GitHub): first, second. Both share an identical folder /root with 1 .git subfolder. /root has /root/a and /root/b subfolders. So folder tree looks ...
3
votes
0answers
52 views

How to configure Brackets and GitLab?

I am trying to configure Brackets with GitLab using the following resources: Brackets Extension for GitLab Now for that we need Brackets Integration with Git. Git Integration I have followed the ...
0
votes
0answers
61 views

Why doesn't git work with File Explorer's “Open Windows PowerShell”?

I followed the instructions in this page for installing Posh-Git and adding it to my PowerShell profile so that it's available in every new PowerShell session: https://git-scm.com/book/en/v2/Appendix-...
0
votes
0answers
46 views

Git rebase hangs out and creates many sh.exe processes

I am using latest PHPStorm and latest git 64 bit on latest Windows 10 x64. When im trying to do rebase option from PHPStorm then it pretty much hangs out and creates a lot of C:\Program Files\Git\usr\...
1
vote
1answer
88 views

git clone and apt error : gnutls_handshake() failed

When cloning a git repository using git clone, I get the following error : fatal: unable to access 'https://github.com/schacon/simplegit-progit/': gnutls_handshake() failed: Public key signature ...
0
votes
1answer
17 views

Replacing published branch

Suppose there is an upstream project that does not use git, and that I am maintaining a codebase based on this project's released tarballs. I maintain a git branch master and my branch my from it. I ...
0
votes
1answer
176 views

Many processes such as git and node are running 10x too slow on Windows 10, but run fast in safe mode

Several command-line programs seem a little slow on a PC. How can I troubleshoot? For example, on this PC, It takes over a half-second to run git status: PS> for (;;) { Measure-Command { git ...
0
votes
1answer
76 views

How to Git commit as root on Linux?

Sometime I have to modify configuration files such as the /etc repository created by etckeeper. So I do this: sudo git commit -am "Modified this setting" Unfortunately it will commit using the root ...
1
vote
1answer
47 views

cmd git command runs git installer

I used git for years now and recently after updating windows and git each time I type git commands in cmd window, it runs git installer. git status ► runs git installer instead of showing the status ...
0
votes
1answer
43 views

need for `git submodule update` over `git pull --recurse-submodules`?

I've read this other similar question but I feel my question is more basic: From the git pull manpage: git pull runs git fetch with the given parameters and calls git merge to merge the retrieved ...
1
vote
1answer
65 views

Force Git to display help manpages in Chrome browser

I am using Git through the PowerShell extension PoshGit, and I have Notepad++ associated as the default program for opening HTML files. This is because I most often than not don't want to view an HTML ...
-1
votes
1answer
97 views

Git: should I checkout a tagged version or master in production?

General question around Git. We work in 2 week sprints and have a 4 branch process: develop > Release-B-Name(Test) > Release-A-Name(Beta) > master Each sprint, we create a new branch with some name ...
0
votes
0answers
44 views

Run pre-commit in PHPStorm environment

Is there any way that I can run my pre-commit hook in the environment set up in PHPStorm? I can't install plugins, as this is a pre-commit script that needs to run accross any clone of this repository....
1
vote
0answers
113 views

SSH ProxyCommand on AWS Lambda

Trying to use ssh with ProxyCommand on AWS Lambda but it falls over. Im not sure why. Im basically doing a git clone, which was working but now the git server is beyond a jump host. I've got git clone ...
0
votes
0answers
58 views

Have two version Git in my desktop

I use CentOS 7, yesterday i update my version of Git from 1.8.3.1 to 2.17.1 but i have problem. when i use sudo su, the version is still 1.8.3.1 but when i not use sudo su the version is 2.17.1 like ...
0
votes
1answer
48 views

Can't clone over git without providing username

usually I do git clone myusername@bitbucket...`` I have cleaned out~/.ssh` I have created a new key pair according to this I want to be able to clone using just git@bitbucket... But this always ...
1
vote
1answer
118 views

How to copy file/folder permissions and ownerships from one folder to an other (recursively) [duplicate]

How do I copy all the folder, subfolders and files permissions (recursively) from /www_03062018 to my new /www ? I came across this post: Clone permissions for all files in a folder chmod --...
0
votes
0answers
63 views

How to access Bash on Ubuntu through Git Bash?

I use git bash on Hyper as my main terminal. I have recently installed Ubuntu on Bash with Windows Subsystem. When I type bash on Windows Command Line or Powershell, it opens Ubuntu on Bash as ...
0
votes
0answers
11 views

My submodule pull request was merged using squash merge

I have a git repository, A, that uses an external submodule, B, from github. The url saved for B in .gitmodules is origin/B, which is my fork of upstream/B. I don't manage upstream/B. At one point, ...
0
votes
1answer
75 views

Can access Github via browser but not via git commands

I work in a bank which seems to be blocking Github (they use svn with internally hosted repos): H:\>git clone https://github.com/torvalds/linux.git Cloning into 'linux'... fatal: unable to access '...
1
vote
0answers
36 views

Batch: Word counter [duplicate]

How to make a counter that counts a word "parent", from an external file, then divides it by 2 and after that "echo's" this to a document? This is a file that will be downloaded, thats why it should ...
0
votes
1answer
26 views

linux git corruption on qemu guest shutdown

I run ubuntu on qemu virtual box with this command: "D:\Program Files\qemu\qemu-system-x86_64.exe" -hda myimage.img -nographic -enable-kvm -accel hax -enable-hax -m 1G -net user,hostfwd=tcp::22-:22 -...
2
votes
1answer
42 views

Why I cannot pull gitlab repo even though I created an SSH key?

I did everything required here and here to create and issue my SSH key to GitLab. I both have a win64 PC and I use the Ubuntu 16.04.4 cluster at my research lab. With the PC this works and I am able ...
1
vote
2answers
26 views

Git repeated clone vs pull

Use Case: I have MyApp that will be deployed at ClientX. I am writing a shell script to fetch that branch from my bitbucket repo my shell script (that works fine) git clone -b $BRANCH_NAME https://$...
0
votes
0answers
23 views

Git merge 2 branches

I'm just starting to use GIT, and i'm trying to understand if i'm correct. Let's say we have branch Master, branches Bug1, Bug2 If i want to merge branch Bug1 into Bug2, i would do something like: ...
0
votes
1answer
133 views

git ls-remote throws fatal: HTTP request failed

when jenkins tries this command: git ls-remote --tags --heads https://github.com/angular/bower-angular-resource.git it fails and breaks the build, trying the same command in the console got the ...
0
votes
1answer
24 views

How to echo from web to a file in windows terminal?

What I want is to run a command in a terminal that will download a Visual Studio git ignore raw file, save it to .gitignore file in a folder where my terminal is opened on my Windows 10 machine. I've ...
1
vote
1answer
12 views

How to add remote submodule to my github project?

For example: How do they do it? I tried next but it just downloaded module locally (didn't appear on github): git submodule add https://github.com/FFmpeg/FFmpeg git submodule update --init --...
1
vote
1answer
224 views

Why does Git for Windows create repositories that I can't delete from a command line?

I have freshly "Reset" installation of Windows 10. I installed the "Git for Windows" distribution of Git from https://git-scm.org/. If I create a git repository in any way (whether init or clone), ...
0
votes
0answers
60 views

Git for Windows looks for SSH key in Unix-style path

I've been reinstalling my laptop from scratch and have some trouble with Git for Windows this time. I've recreated my usual setup on Windows 10 with PowerShell, posh-git and ssh-agent. However, Git ...