Tag Info

New answers tagged

1

% toggles the file filter in any view and does what you're asking for. You can even switch back and forth between the file's history and the repository's history, or the file-constrained view of a commit and the commit in its entirety.


0

Install hgsvn, then do this hg clone https://bitbucket.org/"channel"/dotfiles/src dotfiles Where channel is the users files you want to clone.


0

@Qudit is right - you need hg to clone a mercurial repo, and git to clone a git repo. There are gateways to transmute one to another, but those are set up usually at the repository site. Solution: use mercurial.


0

I found a great plugin for zsh that you can use. If you are using oh-my-zsh then its called gitfast or if just using zsh then you can follow the instructions on his blog article. As the author details there are in fact quite a lot of git completion issues and his efforts are to resolve them all. This is one issue that now works like the way it does in bash. ...


0

From my exercises with the revert command I made the observation that the abort option works very similar to the one of the rebase command in that it tries to reconstruct the pre-operational state of the current branch. You're on the right track: git revert --abort rolls the sequencer state back, so the workspace and history end up as they were before ...


0

Turn out it was indeed a ram problem. 268mo was not enough for git to function properly. I solved the problem by adding 1GO of swap to the server. I hope this might help someone in the future. Thanks everyone for your help!


2

Personally I modified the makepkg script and it's working like a charm: # vim `which makepkg` +/clone ... 541 msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "git" 542 if ! git clone --mirror "$url" "$dir"; then 543 error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "git" ... Appending "--mirror ...


7

Most programs that produce color will, by default, only produce it when the output is to a terminal, not a pipe or file. Generally, this is a good thing. Often, however, there is an override switch. For example, for ls, one can use --color=always and, as a result, color can be saved in shell variables. For example: grep also supports the ...


0

Despite the suggestions here I couldn't find any way to do this except to delete my local repo and recreate it with git clone. This is slower and seems very wasteful of resources, but unlike all other ideas it actually works and I am now running btrfs-progs v4.0.


0

You need to git add your local modifications , git commit then git pull(it's combination of fetch then merge) Occasionally you have to fix the merge conflicts. Check your current status with git log -2


1

There is probably a index.lock file in the .git folder that is causing this error message. The error is shown whenever a change is made by one user and the lock is owned by another user. This will protect the local git tree from commits by different users interfering with eachother. You may wonder why the lock is not owned by your user on the remote system, ...


1

Try this. $1 should be the parent dir containing all of your repositories (or use "." for the current dir): #!/bin/bash function git_branches() { if [[ -z "$1" ]]; then echo "Usage: $FUNCNAME <dir>" >&2 return 1 fi if [[ ! -d "$1" ]]; then echo "Invalid dir specified: '${1}'" return 1 fi ...



Top 50 recent answers are included