This is basically the result of a massive class C on the master having been refactored down the line into two smaller classes, C1 and C2. C was then made a subclass of C2 and cut down to a skeletal version for backward compatibility. So from that point on, master contained C, C1 and C2. On that master commit git said C was renamed to C1....
the diff result in text might be hard to get used to at first. Is there a way to pipe that output to a visual diff tool, such as something like
$ hg diff --visual code.rb
or
$ hg diff code.rb | sometool
so that the result can be viewed visually?
...
Our project uses Git as the version control system and recently I needed to review someone's commits. How can I see a list of commits made by a specific user?
...
I'm in lean startup mode, working on a simple phone app that will be published initially as a iThingy app and an Android app with, possibly, Blackberry and Symbian versions to follow. I'm about to go from no repository to needing a central repository that up to 4 very part-time resources will be sharing. Two of us have no version contr...
In Git, given (1) a branch A and (2) a branch B derived from A at some point in the past and then merged back into A, how can I find all the commits now in A that originated in B?
The intent is to identify the changeset of work performed in B now in A to more quickly track down issues.
A squash commit would obviously and conveniently p...
We are using Git and our workflow consists of a 'dev' and 'master' branch which lives on GitHub and each developer's local repository. No work is performed directly on 'master' or 'dev', but rather in local branches and only merges happen on 'dev' and later with 'master'. We do not push local branches to GitHub.
For some reason develope...
I use git-svn and I noticed that when I have to fix a merge conflict after performing a git svn rebase, the meaning of the --ours and --theirs options to e.g. git checkout is reversed. That is, if there's a conflict and I want to keep the version that came from the SVN server and throw away the changes I made locally, I have to use ours,...
The following was the status of my repo.
[~/rails_apps/jekyll_apps/nepalonrails (design)⚡] ➔ gst
# On branch design
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: _layouts/default.html
# deleted...
I'm using git for a personal project at the moment and have run into a problem of having one codebase for two different environments and was wondering what the cleanest way to use git would be.
Main Desktop
I Use this machine for most of my development. I have a git repository here that I cloned off of an empty repository that I use on...
My .gitignore file gets ignored and the files which should be ignored are still visible.
user@host ~/workdir % git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: .htacce...
I'd like to try git (hosted on github) for a new project, but I have a doubt on how it works.
I am working with another guy, do we need to have two forks of the project and then merge them every time one of us makes a change to the code or is it possible to work in pair on a single origin?
...
I used to be able to clone from my personal git repository but now i seem to be running into an error.
user:dev.site.com mikesilvis$ git clone { my ssh directory }
server@ipaddress's password:
remote: Counting objects: 3622, done.
remote: Compressing objects: 100% (2718/2718), done.
error: git upload-pack: git-pack-objects died with e...
I have recently installed msysgit on my machine (its running Windows 7) to use Git for some projects. A lot of my projects are under SVN, in which I use AnkhSVN in Visual Studio 2008 to commit etc.
Since I have installed msysgit everytime I try to commit, update etc inside Visual Studio, the program C:\msysgit\bin\ssh.exe loads up, ask...
Every so often when I run git add . to add new files to my repo my git index will reset and think all the files in the repo have been deleted. I run these commands:
git status
git add .
git status
git commit -a -m "Commit message"
everything looks fine at all those points until I commit and it says every file was deleted, all I have t...
I'm a Ruby on Rails developer and want to use Git for my next project, but I'm not pretty sure how to begin learning this.
I have too much basic questions like "Can I run my app from the repository?", or "Can I make a rollback in the live site?"
Any help will be apreciated.
...
I would like to extract the information that is printed after a git status, which looks like:
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
Of course I can parse the output of git status but this is not recommended since this human readable output is liable to change.
There are two problems:
How to know...
Hi,
I have generated a public key, private key pair.
I've set the public key to the site.
How to use the console in windows to clone a git repository?
What do I do with the private key?
I keep getting: the remote end hung up unexp.
Thanks
...
I'm implementing GIT for web developemnt, and I want to have the working copy repository that everybody pushes to automatically reflect the latest commit in it (since it is online for everyone on the team to see as a testing site). Right now, you have to run "git reset --hard HEAD" on the repository after somebody pushes to it in order t...
I have a server that contains a central git repository and one of my co-worker's development environment. My co-worker's repository's origin is the central git repository and he pushes there when he has some code to share. Likewise, I develop locally and push to the central git repository when I have some code to share, so my repositor...
Oftentimes, when using git, I find myself in this situation:
I have changes to several files, but I only want to commit parts of them.
I have added several untracked files, which I want to track and commit.
Solving the first part is easy; I run:
git add -p
Then, I choose which hunks to stage, and which hunks remain in my working t...