So there is the guy on the internet who wrote a ton of code and stored it all on github. One day, said guy just up and disappears deleting all of his repositories. Thankfully, there were many forks of his main projects but still there were many smaller repos that were not forked. However, I managed to use the Github API to periodicall...
Is there a git command that can output for every commit:
id
subject
blobs it created with they path and size (like git ls-tree -l -r <commit> but only for created blobs)
...
Hi,
I am creating my working directory using this git command:
git clone git://git.webkit.org/WebKit.git WebKit
Is it possible to remove a directory and its subdirectories locally and yet it won't screw up my future 'git svn rebase' when I try to sync up to a newer version of webkit?
Thank you.
...
Whitespace, it turns out, has ended up being a horrible pain for me
while using git.
git config apply.whitespace=strip
seems to highten your chances of getting conflicts (as you strip
unneeded whitespace and then other collaborators see the stripped
whitespace as a change to their commits?)
I've tried a few other configurations for app...
I'm working with an SVN repository that is laid out like this:
$SVN/[project]/trunk
$SVN/[project]/branches/[user]/[branch]
$SVN/[project]/tags/releases/[tag]
My .git/config looks like this:
[svn-remote "svn"]
url = $SVN
fetch = project/trunk:refs/remotes/trunk
branches = project/branches/*/*:refs/remotes/*
When I...
I read the feature description of all kinds of CI servers, but they don't tell me how good the support is in practice. What is your experience?
...
I'm trying to set up gitosis on a server. I was just wondering one thing, my ssh key has my gmail address at the end, because I was originally using it for github. For this new project on the server I'm setting up, I want to use my email address for this organization when committing to git. Is it OK for me to use the same ssh key when se...
I have a git repository that's used only to hold graphics and sound files used in several projects. They are all in one directory without sub-directories. Now I just created a script to copy these assets over from another, structured directory, with several levels of sub-directories.
Now I only want the (source) hierarchical file struct...
I make an arbitrary change to a file within my git working directory.
git status does not recognized that the file has changed.
git add /path/to/file has no effect.
git add -f /path/to/file has no effect.
git status /path/to/file shows the file as in the 'changes to be committed' bucket.
I removed my .gitignore file, just to be ...
I have a project that I've been working on called "system" that I set up as a repo. I've been pulling and pushing to the project (system.git).
Now I want to publish it to a site like github. What is the best way to take my current project and push it into the new github project without losing my history?
Thanks!
...
How can I see incoming commits in git? Or even better, see what I just git fetch/git pulled?
Edit: To clarify the question: someone tells me that, to get some fixes, I should pull from their repository. My goal is to see what their changes are before I accept them. git pull automatically merges, which is not what I want. git fetch ...
I've got a funny feeling I'm going to feel stupid after seeing the replies to this.
I've been working with Git for a bit now and only just started using branches. I have a couple of branches: 'experimental', 'something' and 'master'.
I've switched to the 'experimental' branch for example, and started working and testing as I go along. ...
After checking out a branch in a repository git always prints a list of roughly 25 files that were deleted long ago. I always just ignored that output but recently I had to do a hard reset, which I assumed would just go back to the last commit, which it did but it also restored those 25 files. Is there some way of removing those files fr...
I'm new to git so please be gentle.
I had a clean working directory and done a clone from a repo last night.
But my local server created a stats folder which I want to ignore. But I can seem to get git to ignore this folder when i run a git status.
See the status message
I added in my .gitignore a few different lines but it still try...
Hello!
I am using TortoiseGit.
I want to revert back to a point earlier before i had deleted a few images.
How do i do this, the methods of reverting that i have seen are incorrect....
...
I want to keep in sync a couple of internal projects between 3 Windows-based notebooks using msysgit. No external repository is desired.
In the best case, every time two developers meets, they should be able to sync their projects.
The only setup I could figure out would be an IIS/Apache web server on each notebook, so one developer wo...
I started a local git repository. Now, at this point, I want to publish it, say to github, but I don't want to publish the whole history of the project, just the latest revision.
In particular, I'd like to create a local "pub" branch, make some modification on it (possibly hiding sensitive information), and the publishing the "pub" bran...
In a Git code repository I want to list all commits that contain a certain word
I tried this:
git log -p | grep --context=4 "word"
but it does not necessarily give me back the filename (unless it's less that 5 lines away from the word I searched for.
I also tried
git grep "word"
but it gives me only present files and not the...
Hi,
I would like to know how to delete a 'git commit', by delete, i mean 'it is as if I did not do that commmit and when i do a 'git push' in future, my changes will not push to the remote branch.
I read git help, I think the command i should use is 'git reset --hard HEAD'. Is that correct?
Thank you.
...
Here is my experiments.
git init
echo hello > some.txt
git add some.txt
-- objects
-- f2 (blob "hello")
echo hola > some.txt
git add some.txt
-- objects
-- f2 (blob "hello")
-- 53 (blob "hola")
git commit -m "..."
-- objects
-- f2 (blob "hello")
-- 53 (blob "hola")
-- 5c (tree
"some.txt" -> 53)
...