Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
0
votes
1answer
27 views
fatal: Not a git repository?
In order to build and install Yocto for SMA-IMX6, I created a folder and then ran sudo apt-get install git.
I could not download the source code directly, so I first downloaded the kernel linux-...
-2
votes
1answer
23 views
How to effectively organize/manage your personal profile [closed]
In the home directory, there are a lot of hidden files, scattered distribution. Some of them are very important configuration files, and we usually need to make backup and version control for these ...
3
votes
2answers
38 views
Accessing a git repository through ssh-config
I am trying to push to my git repository from cygwin but in vain. It used to work. I get
$ git push
ssh: Could not resolve hostname prooftheory: Name or service not known
fatal: Could not read from ...
0
votes
1answer
13 views
What git log commands can I use to review my history in brief vs. detailed form?
The standard git log command both has more detail than I sometimes need and not the detail I do want such as the actual changes made.
What could I use for better summary and detail views?
3
votes
1answer
39 views
How to avoid using 'ssh-add ~/.ssh/id_rsa' for every push to a github repo?
I have to repeatedly enter the following terminal commands in order to be able to push to a remote github repository. If I push to github, and then code some more for the next few hours before pushing ...
1
vote
0answers
18 views
How can git and svn use an existing ssh proxy?
Due to some apparent fiddling on a hotspot I am using I cannot use https directly (the hotspot provider seems to have fiddled with it n some way) so I have set up an http proxy for use with Firefox.
...
2
votes
1answer
19 views
Is there a a shell extension which is like scm_breeze where the output is numbered and you can alias to a file by its number
In scm_breeze, output is numbered and you can use the numbers in subsequent commands. For example here I am doing git status to see the changed files and then staging the first file for commit:
...
3
votes
1answer
61 views
if-then-else inside Bash Alias
I am trying to make a alias for mv so it does its normal behavioer in normal folders and is replaced by git mv inside git repositories. I tried many ways. the if statement works, only the command git ...
4
votes
0answers
22 views
Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
I track my dotfiles using this method:
A bare repository resides in $HOME/repos/dotfiles.
All my dotfiles reside in their normal location, e.g. $HOME/.vim/vimrc, not $HOME/repos/dotfiles/vimrc.
I run ...
1
vote
1answer
14 views
Providing git remote with SSH arguments?
For some reason, my console hangs if I try to run any ssh command. For example:
ssh user@server date will hang,
ssh -f user@server date works.
If I want to include the -f argument in a git remote ...
1
vote
2answers
41 views
pass answer to git command
I try to get "git pull". It is asking for username and password. How i can automate it?
➜ git:(master) git pull
Username for 'http://127.0.0.1': username
Password for 'http://[email protected]': ...
1
vote
1answer
22 views
git - extract some files into shared 'lib'
There were some similar projects (projA and projB), which was developed separately and had similar files in it. No VCS was used.
After time, some 'library' (let's call it lib directory) same for both ...
1
vote
0answers
27 views
Emulating git status --ignored in non-repository folder
This might be in essence a duplicate of this question, however the perl script provided did not work in my case as far as I can tell. There are also many questions about finding multiple patterns, but ...
0
votes
1answer
37 views
How to set a variable to the output `git push` command
I tried this way:
pushOut=`git push`
But when I try:
echo $pushOut
I get an empty string
1
vote
1answer
42 views
index.lock permissions error - .git owned by root, working tree owned by other user
On my server, I have a git repository covering a to-be-web-readable directory. The contents of this particular user's www directory will be readable and writable by that user, but I want the .git ...
0
votes
1answer
15 views
Using zsh alias to quickly clone a git repository with custom folder name
I want an alias shortcut to achieve the following:
Clone a github repository with a custom folder name
Open it in my fav text editor (atom)
I currently use this inside ~/.zshrc:
alias quickstart="...
1
vote
3answers
90 views
How to force User in ssh config file
I'm trying to override the User for certain hosts. I came across this gist and though I could improve on it by removing the step of creating a new Host alias for each domain-account needed.
~/.ssh/...
3
votes
1answer
21 views
How do I download a specific version of a package on git.centos.org?
I am browsing this page, looking for source or binary for glib2-2.42.2-5.el7. (I got there from here) It seems like this is a patch rather than the entire source.
Where can I get either the complete ...
0
votes
1answer
32 views
What is the name of the default git mergetool?
I'm wondering what the name of the default git mergetool on my linux server is?
0
votes
0answers
27 views
How to do `--index` with `git stash pop` by default?
git stash pop has an option --index which will try to restore the git index upon pop. How to use it by default? I want git stash pop to restore index by default.
0
votes
0answers
16 views
gitlab logrotate is not getting started
I have recently upgraded gitlab from 7.10.2 to 8.16.2, but after upgrade logrotate service is not starting up. The starting process is failing.
runsvdir -P /opt/gitlab/service log: to lock supervise/...
2
votes
0answers
34 views
UTF-8 problems when sending 'git format-patch' files with mutt
Yesterday I created a commit in git, used git format-patch to create a patch and finally sent this patch as an email via mutt, using mutt -H <patch>. Somewhere along this chain my name, that ...
1
vote
2answers
41 views
How to use Git merge drivers with Jenkins
I recently searched for a way to merge pom.xml-s automatically with Git merge driver. Got it working locally, but now I'd like to add this solution to Jenkins -- no luck so far.
What I did:
1) I ...
1
vote
1answer
413 views
Arch linux ca-certificates.crt not found
I have a problem with the certificates in Arch linux. It seems that it can't find ca-certificates.crt. I have updated my system and installed the ca-certificates{,-utils,-mozilla} packages and it ...
1
vote
0answers
14 views
Git-annex auto merge symbolic links?
Is it possible to merge two same file automatically?
For example, fileA and fileB are two same files. However, fileA is on PC and fileB is on Laptop. If I run git annex import /path/to/fileA and ...
4
votes
1answer
51 views
Specify submodule revision in PKGBUILD
I'm trying to install hhvm-git package from AUR and getting an error. There is a bug in one of submodules. This bug is fixed already and I want to specify revision contains that fix for the submodule. ...
3
votes
1answer
30 views
How to make clean commits with etckeeper?
I would like to make clean commits with etckeeper. Here is what happens:
1) Check the status of the repository :
git status
On branch master
nothing to commit, working directory clean
2) Modify a ...
0
votes
0answers
13 views
Is there a dockersh like gitsh?
I quite like git-shell. When I have several operations to do with git it saves some typing.
Is there any similar effort for docker ?
1
vote
1answer
27 views
Print just git commit sha and a pattern using sed
I'm running from the terminal in OSX, and given a git log format like:
* 58dbb08 Joe Blogs 5 weeks ago | [ABC-123] Commit message contents
* 5a9c5e1 Jane Doe 3 weeks ago | Commit Contents with XYZ-...
4
votes
1answer
103 views
how to set up username and passwords for different git repos?
─[$] cat ~/.gitconfig
[user]
name = Shirish Agarwal
email = [email protected]
[core]
editor = leafpad
excludesfiles = /home/shirish/.gitignore
gitproxy = \"ssh\" for gitorious.org
[...
3
votes
2answers
41 views
git: how to add one file as a version of another?
I have a bash script that I've written during the course of the last week. Today, I've decided to finally give git a try before making any further changes, created a git repository, etc.
The script ...
1
vote
2answers
22 views
where is the 'Editor' variable kept in git?
I cloned a repo (using fictious examples here)
$ git clone http://someplace.somedomain.name/resource.git
went to the directory
$ cd resource
and then tried to edit a file within the resource ...
1
vote
0answers
25 views
generating git commit info with rubber (for LaTeX, Debian)
I'm using the rubber program (in Python, from Lauchpad) to process a LaTeX document (thru pdflatex called by rubber -d) on Debian/Sid/Linux (the document is some H2020 European R&D proposal). I ...
0
votes
1answer
22 views
Re- Setup git-svn repository in Mac after a cleanup
I need help in re- setting up a password protected, project repository in my Mac OS X after it was wiped due to hardware issues.
I followed these steps
Installed the Xcode Command Line version
...
4
votes
2answers
101 views
How to find all git repositories within given folders (fast)
Naive approach is find dir1 dir2 dir3 -type d -name .git | xargs -I {} dirname {}
, but it's too slow for me, because I have a lot deep folder structures inside git repositories (at least I think that ...
3
votes
1answer
23 views
Git command to strip multiple removed lines from the commits that originally added them
After I remove several lines from a git-versioned file, instead of making a new commit that removes those lines, is there a git command(s) that just strips those lines from the commits that originally ...
2
votes
2answers
417 views
Unmet dependencies while installing Git on Debian
I am attempting to install git on Debian 8.6 Jessie and have run into some dependency issues. What's odd is that I didn't have any issues the few times I recently installed Git in a VM while I was ...
0
votes
2answers
68 views
Save into file git fetch terminal output
I have tried several ways to save into a log file 'git fetch output' from terminal, through a bash file but without success, like,
git fetch origin > output.log
or even adding output.log in the ...
1
vote
0answers
47 views
git ssh alias not working unless I add the key to ssh-agent (OSX)
I added a ssh alias to use a different key-pair for a certain domain. The key does not have a passphrase. I had followed the directions at https://confluence.atlassian.com/bitbucket/configure-...
2
votes
1answer
61 views
How to use “less -F” without “-X”, but still display output if only one page?
I'm tweaking the pager of Git, but I've got some issues with it.
What I want is:
Always colored output
Scrolling by touchpad or mouse
Quit-if-one-screen
And my current configuration is:
$ git ...
1
vote
1answer
43 views
Sudo-like utility for ssh, or at least git in particular?
I'd like to keep my keys secure, but also not have to enter a passphrase on every single git invocation, when I want to run several commands in quick succession. I've researched this, and found that ...
0
votes
1answer
17 views
Restore files from external USB after deleting .git [closed]
I have 20 years of work on my USB. After deleting .git files. I ran this command in the terminal:
sudo find . | grep .git | xargs rm -rf
I lost all folders and files.
When I look in Finder I was ...
1
vote
0answers
26 views
Git-annex link to different file names
Maybe this is just a crazy use case that doesn't work, but I was wondering if there's a way to build a file's history from files with different file names. I'm exploring this idea because I'd like to ...
0
votes
2answers
44 views
Understanding what git branch means, in this context
I'm trying to understand what does this code means:
function git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
but I don't get it. Someone said this ...
4
votes
1answer
209 views
I have nested git repos, will it cause a problem?
A history
I installed etckeeper
I decided to track e.g. shorewall firewall configuration as its own git repository. I think I wanted it to be easier to look at specific configuration changes. I ...
4
votes
4answers
103 views
List files not stored in Git repos
I want to find out what files in a certain directory are not managed by Git. This is so I because I use Git for backups, and I want to eventually get all my files personal in there.
What unix tool ...
0
votes
0answers
31 views
automatic create directory “git-shell-commands” in home directory when login to git-shell
I want to create directory "git-shell-commands" in home directory when login to git-shell
I need to user in Active Directory to use git-shell.
Now AD user can login to FreeBSD (Samba 4.4 + winbindd +...
4
votes
2answers
108 views
Add file outside git repository [closed]
Assume I have local workstation with root access and a server without root access. I want to share (mostly configuration) files between these two computers. So I set up a git repository with top-level ...
1
vote
1answer
52 views
“not regular file” when trying to scp .gitignore file [closed]
The remote directory already contains a .gitignore file, which I want to overwrite and upload a new one. After doing:
scp -P[portnumber] [email protected]:path/for/file/ location/of/file/.gitignore
I ...
1
vote
0answers
40 views
How to store different username-password key pair in SSH in GIT Bash?
Current Machine: Git Bash on Windows.
Trying to connect to a Mac through SSH.
When I execute the below command:
ssh [email protected] "ls"
Password: <myPassword>
Output (works as desired)...