How do you create a new project/repository? A git repository is simply a directory containing a special .git directory. This is different from "centralised" version-control systems (like subversion), where a "repository" is hosted on a remote server, which you checkout into a "working copy" directory. With git, your working copy is the repository. Simply run git init in the directory which ...
What is a good strategy for keeping IPython notebooks under version control? The notebook format is quite amenable for version control: if one wants to version control the notebook and the outputs...
Git is a platform, Mercurial is “just” an application. Git is a versioned filesystem platform that happens to ship with a DVCS app in the box, but as normal for platform apps, it is more complex and has rougher edges than focused apps do. But this also means git’s VCS is immensely flexible, and there is a huge depth of non-source-control things you can do with git. That is the essence of ...
If you want to version a database schema and can't be bothered to do a manual dump, use git hooks (or hooks in your favorite vcs) to have it automatically request a schema dump from the db server. Then you'd have something consistent your vcs can diff.
How should I perform better document version control on these files? I need to know the part modified (different part) in these files and keep all the versions for reference. Currently I am appending the time stamp on the file name, but I found it seemed to be inefficient. Is there a way or good practice to do better document version control?
I want to remove all version tracking from a project's directory. What is the correct method to do this? Can I do a shell command such as: rm -rf .git from my projects directory or is there a way to do this as a Git command? I used this project to learn Git and realize I made some mistakes early on in the project with moved, renamed and deleted ...
Another solution can be to use Git tags to automatically generate the version number. A script can find the closest tag starting with v such as v0.1.2 and use the tag name as the version number plus the first n digits of the current commit (v0.1.2 (build 4acd21)).
When you use git rm --cached myfile it doesn't delete from the local filesystem, which is the goal. But if you've already versioned and committed the file, pushed it to a central repository, and p...
Do you need a tool to help you with your software configuration management (SCM) or your version control [system] (VCS)? That's what the ClearCase vs Git discussion boils down to.
A "commit" in Git generally designates a "commit object " (as described in git commit-tree for instance): A commit encapsulates: all parent object ids author name, email and date committer name and email and the commit time.