Close cmd window after Git command in batch script

I wrote a short batch script (Windows 7) to bundle a Git repo and save a copy on a network drive: @ECHO OFF cd /D E:/mypath/myrepo.git start "Window title" "C:\pathto\Git\git-cmd.exe" git bundle create X:/outpath/name.bundle --branches --tags This...
more »

2017-01-13 15:01 (1) Answers

Git: ERROR: Unable to determine version

I'm trying to convert some svn-repo's to git (Atlassian Stash) using this tutorial of Atlassian itself. When I run the command java -jar svn-migration-scripts.jar verify I get following result: svn-migration-scripts: using version 0.1.56bbc7f Git...
more »

2017-01-13 15:01 (1) Answers

automatic git clone using yml file gitlab

I am trying to setup automatic git clone/pull on server using gitlab yml file. How to check git repository exist using yml script, if exist then git pull otherwise make git clone. I want below output : If GIT REPO NOT EXIST then git clone else...
more »

2017-01-13 11:01 (1) Answers

Error in tree: contains duplicate file entries

Having an issue moving an existing repo to another origin where it's claiming a tree has duplicate file entries. git fsck --full Checking object directories: 100% (256/256), done. error in tree 4ef325894daeb3a7eeaba4cb7b40b43844f2974c: duplicateEn...
more »

2017-01-12 15:01 (0) Answers

Search for files in a git repository by extensions

I have a string like this *.{jpg,png} for example, but the string could also be just *.scss - in fact it is an editorconfig. Then I want to search for every file of this extension which is tracked by my git repository. I've tried several methods bu...
more »

2017-01-12 12:01 (1) Answers

Export files from git revision with Process()

To export git revision I use the command: git archive master | tar -x -C /Users/me/Desktop/export/ which works fine in terminal. Using this with Process() let task = Process() task.currentDirectoryPath = "/Users/me/Documents/Project/...
more »

2017-01-12 11:01 (1) Answers

Numbers/letters following @ of file (gitlab)

What are the numbers/letters after this @: public @ 6fa07654 I'm in the files and they don't seem to point to any commits. Furthermore, It's a folder and there should be some files in it, but when I click on it, it seems to just redirect me to the ...
more »

2017-01-12 09:01 (1) Answers

Create git branch without changing working copy

I just created a new repository and added a remote: git init git remote add foo something Now I want git to be on the most recent commit of foo/master. Usually, that would just be: git checkout master Git is clever enough to use foo/master thes...
more »

2017-01-11 17:01 (1) Answers

InteliJ: Force read-only when on master branch

Our team is about to make the switch from SVN to Git. We all use IntelliJ Idea as an IDE. Seeing as many of the folks currently work on the SVN trunk on a daily basis, I am afraid that, despite training and many warnings, many folks will sometimes f...
more »

2017-01-11 10:01 (1) Answers

A merge was done wrong. How can I fix it?

There are two branches in our repo, release_1.18 and feature/remove-duplicate-media. The Pull Request from feature/remove-duplicate-media ---> release_1.18 contained conflicts. The developer responsible for the feature merged release_1.18 back in...
more »

2017-01-11 09:01 (2) Answers

Merge git branch onto svn branch using subgit

I'm using the Subgit plugin for BitBucket to mirror an svn repository as a git repository. Only the trunk branch (called master in git) has been marked for synchronization, but developers using the git repository have created a feature branch and com...
more »

2017-01-11 00:01 (1) Answers

fatal: could not unset 'branch.master.remote'

I am trying to remove git remote. I have just removed heroku remote url with the command $ git remote rm heroku but when I try to use this on remote for bitbucket(origin). It fails with an error git remote rm origin fatal: could not unse...
more »

2017-01-10 12:01 (0) Answers

How to open git project on mac?

A client sent me a .git file, and says to run the project. I am not sure how to download it. Is it possible to download a project if you have ".git" file available. Please help. This is an iOS project, and I am using Mac. ...
more »

2017-01-10 11:01 (3) Answers

Can't access Go libraries

I had a working go project and I added some libraries to it. All was working fine till this step. Then I pushed my code to server. Again I tried to take fresh clone the repository and I am getting following error. go file not find error When I try ...
more »

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

Working on GitLab/GitHub/BitBucket feature branch

I am looking for a recommended methodology of working on a feature branch in Git with a server like BitBucket/GitLab/GitHub. Assume we start with a release on the master branch, create a feature branch and assign several developers to work on it. T...
more »

2017-01-09 10:01 (0) Answers

Merging all the commits centrally

To simplify the situation suppose two users commit history is like A -> B -> C A -> B -> D # and Repo at A -> B and both two user try to push at same time. First user will get chance first and now repo is at A -> B -> ...
more »

2017-01-09 06:01 (2) Answers