Sourcetree remote: Invalid username or password

Im trying to push to github with sourcetree but get the following error: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin live_version:live_version remote: Invalid username or password. fatal: Authentication failed...
more »

2017-08-10 22:08 (2) Answers

Maven skipping files when copying resources

We have a project stored in BitBucket. We use Jenkins to pull it from BitBucket, run /xenv/Maven/X/3.2.5/bin/mvn -f $WORKSPACE/feeds/project -s $WORKSPACE/feeds/project/settings.xml -e clean package -Dmaven.test.skip=true followed by this: export SV...
more »

2017-08-10 17:08 (1) Answers

How to get into a git flow

I have trouble getting into the habit of using git or source control in general. In the beginning of a programming session I am aware that I should commit frequently but after a while I have this coding tunnel vision and forget to commit and then ho...
more »

2017-08-10 12:08 (1) Answers

Python - Unix commands not recognized in Jupyter

I have installed Git Bash, python 3.6 and Anaconda for the course which requires me to use Unix commands within Jupyter, such as !ls, !cat, !head etc. However, for each of these commands I get (e.g.): 'ls' is not recognized as an internal or exte...
more »

2017-08-09 21:08 (1) Answers

How to abandon a whole topic on Gerrit?

So the long and short of the issue is that, in a fit of fanatical adherence to code review principles and user attribution.... I pushed around 834 commits from an upstream branch to a project's gerrit server. I was since then informed me that I oug...
more »

2017-08-09 18:08 (1) Answers

Git - efficient way to add files in commandline

I prefer using my Git commandline, feels like I know what I am doing (or if not, I can only blame myself...). Still, it always feels like git add-ing files is the least efficient thing to do. I do not like the -a option, especially when I really do...
more »

2017-08-09 09:08 (1) Answers

git push --set-upstream vs --set-upstream-to

according to this article, git push --set-upstream is deprecated and git push --set-upstream-to should be used instead. But when I checked the git push documentation, I can only find --set-upstream, but --set-upstream-to is no where to be found. S...
more »

2017-08-09 04:08 (2) Answers

git svn fetch specific directory

Is it possible to fetch specific directories using git svn? I am trying to fetch multiple directories that match a name "XYZ" in "trunk/Path". "XYZ" is in multiple paths. git svn init --stdlayout --no-minimize-url --trunk=trunk/Path git svn fetch ...
more »

2017-08-08 17:08 (1) Answers

Migrate from LFS to annex

In a moment of delirium before a deadline, I added a large (> 100 MB) binary to a repository with remotes on private hosts as well as github. Of course, github complained, and naively trusting their suggestion, I opted to use LFS. After two or three...
more »

2017-08-08 16:08 (0) Answers

merging old branch created in svn using git

We had an old svn repository that was migrated to git. Before migration we had created a branches in svn that were also migrated. The problem is that when we checkout the old svn branch the files are located under /trunk-folder and our master branch ...
more »

2017-08-08 16:08 (1) Answers

Git: Why is a merge-base necessary

I know Git doesn't save diffs in the repository (as SVN does). Instead it saves a new tree-object for each commit and new blob-objects for every file that has changed. So, when merging two branches, why is it not enough to merge only both branch-head...
more »

2017-08-08 16:08 (0) Answers

Delete a merge commit from git

I have a merge commit on a Git repository that I want to delete. How to really delete a commit from git? I mean DELETE a commit that has no commits after it. I just do not want it clogging the history (and occuping disk space). Please do not answe...
more »

2017-08-08 15:08 (2) Answers

Bitbucket cannot execute git upload-pack

I am trying to clone a repository, but I get an error message, stating the following whenever I try that: Bitbucket cannot not execute "git upload-pack ...". The command is not supported as entered. Ensure you are using a supported SCM, check the s...
more »

2017-08-08 10:08 (2) Answers

gitignore file is ignoring the wrong directory

I have a simple directory structure: gitroot/ └── docker/ └── critical_dependencies/ I would like to just ignore the entire contents of the critical_dependencies/ directory. My .gitignore file has the following entry: docker/crit...
more »

2017-08-08 06:08 (3) Answers

Git tag from AssemblyInfo version

TLDR; After installing and configuring gitversion, how do I "hook up" my git repo and .nuspec to use the generated version number by the injected AssemblyInfo ? It's my first time trying to properly version anything automatically. So far I've always...
more »

2017-08-07 15:08 (1) Answers

Git repository maintenance and auditing tools

I would like to do some auditing and maintenance operations in the Git repository, because there are developers that sometimes version files that shouldn't be in a regular (healthy) repository: compiled binary files, third party documentation files.....
more »

2017-08-06 18:08 (2) Answers