Let’s say we have 5 patches for a file, and 4 of the patches changed the file content and add new lines. But we can still apply a single patch 5 to the git tree. Why? Since I thought the line numbers has changed, and so the line contents didn’t match any more. How does […]
What needs fixing: I have a repository containing a single .md file, which contains an essay I am writing. I edit the file from a few different computers, one running Linux and a couple running Windows. Looking at a git diff in Windows now where I have made some changes, I can see my essay […]
I’m looking for a Git GUI that covers all my needs in one place. Currently I’m using 4 different tools in parallel and while that gets the job it would be nice to have it all in one place. The tools I’m currently using are gitk, gitg, Git GUI and meld. The features I’m looking […]
How do I get the branch/feature name from a sha1 hash on the command line? Also how is this done using pretty=format syntax. I see that it’s done somehow using this method git log –graph –full-history –all –color \ –pretty=format:”%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s” but I don’t know which line is causing this.
I have configured Jenkins on a Linux machine and my git repo is on an another Linux server. But when I try to give the URL of the repo to Jenkins I get the following error. Failed to connect to repository : Command “git -c core.askpass=true ls-remote -h ssh://user@ip/~/export1 HEAD” returned status code 128: stdout: […]
I wanna compile git with http/https supported. And I have $ ls /usr/include/curl/ curlbuild.h curl.h curlrules.h curlver.h easy.h mprintf.h multi.h stdcheaders.h typecheck-gcc.h $ ls /usr/lib/libcurl.* /usr/lib/libcurl.a /usr/lib/libcurl.la /usr/lib/libcurl.so.3 /usr/lib/libcurl.so.3.0.0 But when I run with ./configure –with-curl, it still notice checking for curl_global_init in -lcurl… no How to fix that? ps: My environment could not use […]
.gitignore is used for ignoring the files which are not expected to be commited to git. It locates in the root directory of the project. So this file should also be added and commited as other files or?
In my GIT based project, I need to set several environmental variables which is required by build scripts and many other ant targets. For now I have a shell script which will export variables but each time a user opens a new bash window, he will need to repeat the steps by executing the shell […]
‘git status’ command gives the list of files changed since the last commit. find command with mmin or mtime option gives the list of files saved within a given time length. But it would also include files I have edited and then undone the changes i.e. those whose contents have not been changed. What I […]
When you try to build git v184.108.40.206 on Red Hat Enterprise Linux 3, you get an error: In file included from /usr/include/openssl/ssl.h:179, from git-compat-util.h:139, from builtin.h:4, from fast-import.c:147: /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory I have the answer to this, and I’m just posting it here for posterity.