What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
2022-06-23
Question Quoting Linus Torvalds when asked how many files Git can handle during his Tech Talk at Google in 2007 (43:09): …Git tracks your content. It never ever tracks a single file. You cannot track a file in Git. What you can do is you can track a project that has a single file, but if your project has a single file, sure do that and you can do it, but if you track 10,000 files, Git never ever sees those as individual files.…
Can I specify multiple users for myself in .gitconfig?
2022-06-22
Question In my ~/.gitconfig, I list my personal email address under [user], since that's what I want to use for Github repos. But, I've recently started using git for work, too. My company's git repo allows me to commit, but when it sends out announcements of new changesets, it says they are from Anonymous because it doesn't recognize the email address in my .gitconfig - at least, that's my theory.…
How to stop tracking and ignore changes to a file in Git?
2022-06-22
Question I have cloned a project that includes some .csproj files. I don't need/like my local csproj files being tracked by Git (or being brought up when creating a patch), but clearly they are needed in the project. I have added *.csproj to my LOCAL .gitignore, but the files are already in the repo. When I type git status, it shows my changes to csproj which I am not interested in keeping track of or submitting for patches.…
Delete forked repo from GitHub
2022-06-19
Question I'm starting with git and GitHub and there's a project I'm watching on GitHub. I unintentionally clicked to fork it. Now it appears as a new project to me. I have some doubts about it: I know if commit or do another thing to my forked repo, it will be updated, but the updated code will take effect only after the project's author request the pull. Right? If I go to admin panel on GitHub there's a delete option.…
git + LaTeX workflow
2022-06-19
Question I'm writing a very long document in LaTeX. I have my work computer and my laptop, and I work on them both. I need to keep all the files synchronized between the two computers, and also would like to keep a revision history. I chose git as my DVCS, and I'm hosting my repository on my server. I'm also using Kile + Okular to do the editing. Kile doesn't have an integrated git plugin.…
How can I preview a merge in git?
2022-06-19
Question I have a git branch (the mainline, for example) and I want to merge in another development branch. Or do I? In order to decide whether I really want to merge this branch in, i'd like to see some sort of preview of what the merge will do. Preferably with the ability to see the list of commits that are being applied. So far, the best I can come up with is merge --no-ff --no-commit, and then diff HEAD.…
Git for beginners: The definitive practical guide
2022-06-17
Question Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. </div> Ok, after seeing this post by PJ Hyett, I have decided to skip to the end and go with Git. So what I need is a beginner's practical guide to Git. "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a Makefile is, and has touched source control without understanding it very well.…