FAQ Database Discussion Community


How do I view the list of commits that haven't been pushed yet?

git,git-bash
I like documenting minor changes as separate commits and finally use git interactive --rebase to combine commits and change commit messages like I deem appropriate. Is there a way to determine which commits I haven't pushed yet without manually checking Github i.e. is there a way to find out from...

How to include a commit in a tag after the tag was already created

git,github,git-tag
I had tagged my branch for release and then another commit was made that needs to be included in the tag. How can I do that ? What are the steps? Can someone explain please ?...

Go back before commit and push changes

git
In my local environment I made several changes, then: $ git log --oneline 2aa8998 Changes 02 5131bfe Changes 01 $ git commit -am "Commit 03" $ git push $ git log --oneline 9ca6c56 Changes 03 2aa8998 Changes 02 5131bfe Changes 01 But I noticed what I made a mistake, as...

Xcode source control - git add

xcode,git,crashlytics,fabric-twitter
How do you perform 'git add .' using Xcodes 'Source Control' function? Im having an issue where I updated my project to use 'Fabric' and Crashlytics, instead of using Crashlytics by itself. Every time I try and commit I get following message: error: unable to index file Crashlytics.framework/Headers fatal: updating...

“Cannot resolve symbol baoyz” Android Studio using baoyongzhang's SwipeMenuListView

android,git,import
I've recently downloaded the github repo: https://github.com/baoyongzhang/SwipeMenuListView Which allows to be a SwipeMenuListView. But the "baoyz" in the following import methods is red: import com.boayz.swipemenulistview.SwipeMenu; import com.baoyz.swipemenulistview.SwipeMenuCreator; import com.baoyz.swipemenulistview.SwipeMenuItem; import com.baoyz.swipemenulistview.SwipeMenuLayout; import com.baoyz.swipemenulistview.SwipeMenuListView; import com.baoyz.swipemenulistview.SwipeMenuListView.OnMenuItemClickListener; import...

Need help pushing a new branch to remote

git
I am new to git, and I am trying to push a new branch to bitbucket. I already have a branch called master. But what I want to do is push a branch with a different name to the same remote repo in bitbucket, without downloading the files for the...

git ssh doesn't work

git,ssh
I have done what the document said, and when I type ssh -T [email protected], it will show Warning: Permanently added the RSA host key for IP address '[192.30.252.149]:443 ' to the list of known hosts. Hi fifiteen82726! You've successfully authenticated, but GitHub does not provide shell access. However, when I...

Git undo changes made in a specific folder

git
How I can undo changes made in a specific folder? I've modified files from multiple folders like app/code/core/ app/code/local/ app/design/frontend/ I want to undo all the changes made in files present in app/code/core/ while keeping the changes modified in files present in app/code/local/ and app/design/frontend/....

Write Access for user on all repos on Gitolite

git,ubuntu,gitolite
I'm trying to add access to read, write and create new repos from my local to a gitolite server. I have the following config on my gitolite server, but it doesn't want to let me push to a new repo: repo @all RW+ = git repo gitolite-admin RW+ = git...

How to find a specific file in my git repo

git
Is there any git command to search a file only inside a git repo? I'm trying to find a name called example.php and I would like to know the location of that file in my repo....

git fork from certain tag version - requirements.txt

django,git,github
I want to fork one github project code, but not from master branch, but from older release. Reason: I want to edit one place in the code in my fork version and put the url of this tag version into my requirements.txt so that pip install -e git+https://git_url_to_my_form_in_this_tag_version works. I...

git - list of all changed but not deleted files in a commit

git
I am investigating git repositories. I want to get the list of changed files in each commit. So, what I did is I visited each commit through the command git reset --hard <commitId> Then, I used git show --pretty="format:" --name-only #{commitId} The problem with this one is that it gives...

Git-Flow and dependencies

git,git-flow
We're running into a strange case with, specifically with Git-Flow and I'm wondering how other developers have solved this. So here's the issue: Dev 1 is working on feature/thing Dev 2 is working on feature/different-thing These are independent features, but feature/different-thing is going to make changes to the API that,...

.gitignore File Not Working With Bonobo

git,visual-studio,github,bonobo
I set up a Bonobo Git server in IIS and have it working on my local computer. However, the .gitignore file is not working. I'm using the GitHub Windows client and this ignore file. I want the bin and obj folders ignored, but they are showing up as changed folders...

Extended description text on Git

git,bitbucket
I want commit with message and Extended description text to Bitbucket server. It exists on Git-cola software and I need the command line of it. I am using ubuntu and I need terminal command for Extended description git commit -am "My commit text" "My Extended description is this. Containing break...

Gitolite denies access to a repo while allowing another

git,bash,gitolite
I have gitolite up and running and I work with it from multiple machines for quite a while. Therefore there are several of my 'rob' keys in gitolite-admin. These days from this machine are awkward: Part of my gotolite.conf repo ProPro OpenTK-10Bit-test RW+ = rob Interestingly cloning ProPro to my...

How can I get the last commit in all tags?

git
I've just made a commit in my project, and I was creating a tag in every step, but it seems the last commit was done in some of this tags. The thing is that I can not longer see my latest change from a minutes ago. How can I checkout...

git add file to archive

git,github,gitignore,gitattributes
When I run this command, the files of my latest commit are saved to a ZIP. git archive -o ../code_version0.9.zip HEAD However the files in node_modules and build/ are missing. That Is because my .gitignore is the following one: node_modules build/ How can I ignore files, but Include them In...

Is there any way to checkout the previous commit without knowing the ID? [duplicate]

git,version-control
This question already has an answer here: Git relative revision numbers 4 answers If I am going to use checkout to find bugs in my code, I think it would be helpful to be able to checkout the previous commit without having to lookup its ID with git log....

How to list remote branch without web request?

git,branch,git-remote
i just want to list my local remote branches. but when i run git remote show origin, it needs to take a request to the server. How can i do ?

Is it possible to connect to remote DB while working in localhost?

php,mysql,git,phpmyadmin
I am working on a project with my developers on localhost. We are using git to collaborate but are having issues collaborating the database using git or using a remote db. Is there any possible way where I can use git or set up a remote server while working with...

Hide sensitive information from git changes

git,security
Is there a way to instruct git to hide my sensitive information. E.g. credentials.php (in local repository). Line1: $dbname = 'xyz'; Line2: $dbpassword = 'password'; credentials.php (in github repository and history). Line1: $dbname = 'xyz'; Line2: $dbpassword = 'xxxxxxxx'; So git automatically hides the information with 'x'. If not via...

Why does rebasing unset my current branch and does not complete?

git,rebase
I'm on branch b4 and do "$ git rebase master", it gives me conflicts. $ git rebase master First, rewinding head to replay your work on top of it... Applying: rebase: Modified 1.txt Using index info to reconstruct a base tree... M 1.txt Falling back to patching base and 3-way...

ERROR while adding meta-oic layer to an Intel Edison image

git,yocto,intel-edison
I was trying to add meta-oic layer to a standard Intel Edison image using the procedure mentioned here. However after making the required changes in both bblayers.conf and local.conf, when I use the bitbake edison-image command, I am getting the following errors: NOTE: Resolving any missing task queue dependencies *ERROR1*...

Pull request within one project/branch?

git,github
Suppose C(=Coder) and S(=Supervisor) are working on a project. For some reasons S never contributes to the codes and just comments on the code. Instead C is the only person coding. Is it possible to send pull request by C to be reviewed by S, within one project, or they...

Migrating Codeplex SVN to Git with git svn clone

git,svn,git-svn,codeplex,migrating
In the past (2013), I was able to migrate a repository from Codeplex (under SVNBridge) to a Git repository. I'm trying to do this again, with the same repository, and the 'git svn clone' method is not working. Basically, it creates the .git folder and it's all. No code is...

choose authentication for git pull

git,github
I want to add a second form of authentication to a github remote. Here is the situation : I have ssh access to a shared server In the server, there is a git repository, with a github remote. If I run git pull, it asks for a passphrase that I...

Advantages/disadvantages to branches and forks

git,github,git-branch,git-fork
I am currently working on a project via a fork of the main repo. I am committing my changes to <fork>/master and then submitting pull requests to <upstream>/master. I have write permission for <upstream>. Am I correct in thinking that I could make this simpler by deleting my fork and...

I rewrote my program and need some suggestions for my git repo

git
My program has gone through a rewrite. I have done all the work in a separate git repo but I want to it all back to the original. Is there a good way to do this so that it is obvious that this a new rewrite? Something like rename master...

Triggering Jenkins to run application tests when GitHub PR is created

git,jenkins,continuous-integration,ansible,continuous-deployment
I am a noob to Jenkins, and I have a Jenkins server that runs an ansible playbook to deploy the app. I would like to be able to have Jenkins run an ansible playbook which runs application python tests when a GitHub pull request is opened. I would then like...

Override .gitattributes text=auto in Windows

windows,git,gitattributes,core.autocrlf
This is pretty unintuitive: C:\python-tdl\examples\termbox>git config core.autocrlf false C:\python-tdl\examples\termbox>git commit termbox.py warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in...

Git Clone: Why aren't remote branches created/available locally immediately?

git
I'm fairly new to Git and am trying to a grip on what's going on behind the scenes! Given a remote repository with these branches: master feature 1 feature 2 If I git clone this repository and then type git branch -a only master is available locally and feature 1...

Undoing a git commit on a folder that contains many other folders

git
I have a main folder called code which has many other folders, each one an individual project. I created a new folder called project2 but forgot to cd project2 before I hit git init... and am now accidentally tracking the entire code folder. Now, my the entire code folder is...

“Arguments to path.resolve must be strings” when calling 'gitbook build' from a Git hook

node.js,git,gruntjs,githooks,gitbook
I am trying to run gitbook build within a post-receive Git hook on my (Gitlab, Debian 7, virtual private) server. Basically I want to: checkout the bare repository to a temporary dir run gitbook build in that temporary dir sync with the webspace through rsync The post-receive script runs something...

RTC to Git Migration using rtc2git - https://github.com/WtfJoke/rtc2git

git,python-2.7,python-3.x,rtc
I need to migrate the source code from RTC SCM to Git along with the history. I have seen a post put in this link and tried downloading it from GitHub and I get compilation error when I execute the "migration.py" script. First I tried to Insatll Python version 3...

How to clone a public GitHub repository recursively without authentication?

git,github
I am trying to deploy an application from GitHub into a test server. I have created a new user in the server to own the local repository and run the application. Later on this user should also perform a daily pull from the repository automatically. I am able to run...

How to tell git-svn that files are NOT binary

git,svn,migration,git-svn,gitattributes
I am converting a large SVN-repo (~28k Commits) into Git using git-svn. When the process was through (~ 1 1/2 weeks) I encountered some .ps1-files being treated as binary in the diffs. I have commited a .gitignore file on master (after the conversion of course) that tells git to treat...

How to download files from git repository?

git,heroku
So I have few .mp4 files in my heroku repository. And I want to download them to my local repositroy. I'm doing it like this: git pull heroku master But it doesn't download the .mp4 files. How can I get those files?...

Configure Git to use a .pem key from a specific location

git,ssh
Whenever I try to do a 'git pull origin master' I get (It is NOT Github): Permission denied (publickey). I am able to SSH into my AWS EC2 Linux sever, which has the bare repository, which I'm trying to pull from when I get the aforementioned permission error. I have...

Git content appear only on log

git
I Have the following situation I have the file example.txt line A I have the commit 1 that added this line than on commit 2 I change the line line A B I did the commit 2 and I pushed that. when downloading the branch and looking at the file...

Why does git checkout modify the index without being documented as such?

git
Here is what git checkout treeish -- file does: $ git init foo $ cd foo/ $ echo aaaa > file.txt $ git add file.txt $ git commit -m 'commit aaaa' $ git checkout -b bbbb $ echo bbbb > file.txt $ git add file.txt $ git commit -m 'commit...

Capistrano and Corkscrew PATH error

ruby-on-rails,git,ssh,capistrano,gitlab
I'm trying to deploy my Rails application with Capistrano but when it comes to "git ls-remote" i get the following error: $ /usr/bin/env git ls-remote --heads [email protected]<server>:<project>.git /bin/bash: line 0: exec: corkscrew: not found DEBUG [a5205e2a] ssh_exchange_identification: Connection closed by remote host DEBUG [a5205e2a] fatal: The remote end hung up...

Jenkins does not find my git repository in Visual Studio Online

git,jenkins,visual-studio-online
I have a Visual Studio Online project working with Git. Everything works fine from inside Visual Studio. I'm trying then to configure a Jenkins job that gets the code from this project, but without success. Although the URL and the credentials are correct, Jenkins gives me this error on the...

Git: Differences since a commit

git,diff,git-diff
Given this output: c:\git\xxx>git log --oneline -n 5 b99c981 Merge remote-tracking branch 'origin/xxx-newfeature' into xxx-blah e53f30a [maven-release-plugin] prepare for next development iteration e40978b [maven-release-plugin] prepare release xxx-3.9.6 0639706 Modified Ant installion path 654ef47 [maven-release-plugin] prepare for next development iteration What are the GIT diff commands to see: What changed in...

Github: forking loop

git,github,forking
I'm still very new to coding and Github and as such am a little confused with how forking repos works - so please forgive what may be a basic question. I've been working on a project with different pair partners all week and my current code base situation is as...

Fix git branch after another developer did a reset

git,github
We 2 developers are working on a branch. I did 2 commits, and pushed them, and we later decided we didn't want them anymore. I did git reset -i <sha> to the sha before the 2 commits, and then force pushed it to the branch on github. The other developer...

What is the difference between stop tracking and discard file in git SourceTree

git,atlassian-sourcetree
I wanted to know what the difference is between discarding a file and and stop tracking a file in git using source-tree. If I deleted a file in my updated code and I want that file deleted on the repository too should I mark it as stop tracking or should...

Switching branches in Git with external dependencies

git,maven,dependencies,git-branch
Has anyone had to deal with the issues of switching git branches in a project that has Maven (or any other external) dependencies? For example, suppose that in one branch I have a maven dependency, and in another I don't (or have a different version required). Would I have to...

Stash Git error “fatal: remote error: CAPTCHA required”

git,atlassian-stash
Attempting to pull from my Stash project, using the following commands: $ git remote add origin https://[email protected]/scm/~username/project.git $ git pull origin develop I'm prompted for my password, which I enter and then get the following error: Your Stash account has been marked as requiring a CAPTCHA to be solved before...

Composer package not found in private repository

git,composer-php
I'm using Composer to load my private remote repository from BitBucket: { "require": { "pico/pico-core": "dev-dev" }, "repositories": [ { "type": "git", "url": "https://[email protected]/picodevelopmentteam/php-server-core.git" } ], "autoload": { "psr-0": { "PicoApi\\": "" } }, "minimum-stability": "dev" } My pico-core composer.json looks like this: { "name": "pico/pico-core", "require": { "facebook/php-sdk": "@stable",...

Get list of changed files from remote server git

git,svn,github
Is there a hook that gives the file name as soon as someone commits their change and merges with master from remote server? . I basically want to get a trigger that someone has updated a file on remote repo. Details like what file has been changed.

Git Clone QT5 Gitorious

git,qt5,gitorious
I can't clone QT5 from gitorious anymore. This used to work: git clone git://gitorious.org/qt/qt5.git --branch v5.3.1 --single-branch 5_3_1_x64_msvc2012 Now the command above returns with error: "fatal: could not read from remote repository. Please make sure you have the correct access rights and the repository exists." Unfortunatly the Qt wiki page...

How to pull files and only override conflicts

git,github
How can I pull down a git and have it overwrite my local project ONLY where conflicts are found? E.g. I have many folders / files in my local project that are not on the git project and never will be. Ok... here is the full scenario. I used DaftMonk...

See previous commit in Github

git,github
After searching my git log for an old commit, I take its full hash paste it into my browser as https://github.com/my_repo/commit/hash and so I can see that commit in Github. Now I want to see the previous commit in Github, but I can't find a way to navigate into it....

Github client for mac: how to overcome the Great Wall?

git,github-for-mac
I had bought the VPN to through the GreatWall. I just want to know how to set up the proxy for the GitHub client for OS X. In shell, it's like this. $ ssh -T [email protected] Warning: Permanently added the RSA host key for IP address '[192.30.252.149]:443' to the list...

Create a bat file that will run git and then run script

git,batch-file
I'm trying to write a batch file that when I run it will clone a repository locally. To open the git I have the following command: C:\Windows\System32\cmd.exe /c "%LOCALAPPDATA%\Atlassian\SourceTree\git_local\bin\sh.exe" --login -i However no matter what command I put in after this it never runs. I have read somewhere that this...

Is `pull` needed after checking out a new branch?

git,git-pull,git-checkout
In case of a git-project with several branches, the question is when you checkout a new branch (first time), is a git pull needed ? $master> git checkout branchA $branchA> git pull Note that the idea here is that both commands are executed right after each other (this question is...

Need help doing a git merge

git
I am working with a collaborator and we are using a remote repo on Bitbucket. The problem that I am facing is when I push a change to the remote repo. My collaborator is not able to pull in the changes. When he does a git pull he keeps on...

Checkout branch on different remote

git,branch
I have a repo that has another remote upstream besides origin. I can do git checkout origin/master, but when I run git checkout upstream/master, I get: error: pathspec 'upstream/master' did not match any file(s) known to git. This does not work either: $ git fetch upstream From https://github.com/getsentry/sentry * branch...

Trying to understand git upstream branch

git,github,version-control
I have a git project. The remote only have a master branch, at local I have a master and proj-structure branch. I created the proj-structure branch using 'git branch -b proj-structure'. I am currently at proj-structure branch at local, when I try to git push, the git suggests me to...

Git post-receive hook is not executed

linux,git,githooks,git-post-receive
The following post-receive hook: #!/bin/bash echo "-> Post-receive test" is not executed when pushing to my remote repository. The remote is ssh://[email protected]:2222/home/git/repo.git (it's a VM) and works, as when I manually checkout it I see the modifications I've made. Some additional informations ... $ ls -al /home/git drwxr-xr-x 7 git...

How to release binaries on Github for different plattforms as seperate downloads?

git,github,command-line,software-distribution
I found this at github https://github.com/blog/1547-release-your-software. Their page provide a way to attach binaries to a special release. My build script compiles binaries for Windows MacOS and Linux. How to supply seperate downloads for different platforms there? AS far I can see these releases are simple git tags. Is it...

Not able to create staging instance on heroku [duplicate]

ruby-on-rails,git,heroku,sqlite3
This question already has an answer here: Errors of pushing rails app to Heroku error occurred while installing sqlite3, and Bundler cannot continue 3 answers I am trying to create a staging instance of my app on heroku. While I am doing git push staging master I am getting...

Using git with Doxygen FILE_VERSION_FILTER

git,version-control,doxygen
What command would be used with git for the doxygen FILE_VERSION_FILTER? The output would preferably be the number of times that file as been revised in the repo.

How to deal with forked gems and bundle

ruby-on-rails,git,github,gem,bundler
I've forked a gem and it is hosted on Github. Then, in Gemfile this is what I've got: gem 'mongoid-scroll', git: 'https://github.com/bgvo/mongoid-scroll.git' Whenever I make changes to the gem using Pry gem-opem command, changes are saved under the following directory: /Users/borjagvo/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/ruby/2.1.0/bundler/gems/ Some things confuse me: 1) In this directory there...

Why can I view some Unix executable files in Mac OS X and not others?

git,bash,shell,unix,binary
I am on a Macbook Pro on Mac OS X 10.10 (Yosemite). When I go to /usr/bin, git is there as a unix executable file. When I open it up in Sublime Text, all I get is unreadable machine code. However, when I open up a different Unix executable file—in...

Contributing to open source project on github

git,github
I want to add translation and a bugfix on open source project on github. I had installed git, forked the project, cloned the fork on my harddrive, changed the permissions of the file(needed to do so I can test the changes), then created a new branch called "Bulgarian_language", then added...

Custom post-receive hook with gitlab

git,gitlab,webhooks
I am trying to set up a custom post-receive hook using gitlab I am following their documentation here I have an executable post-receive file in the custom_hooks folder with the following code: !/bin/bash echo "post-receive firing | wall git pull If I run this file with: ./post-receive It works fine....

How to push local git repo to remote branch?

git,github
I have got new design project in localhost and I have gotten github account with old design. I want to upload it to new branch. I create new branch with web interface on the github "new-design". I create local git repo: #git init I add the remote repo: #git remote...

Add a file named “--” to a git repository

git
I have created a file a gave it the name --. How can I add it to the git repository? $ git status On branch master Initial commit Untracked files: (use "git add <file>..." to include in what will be committed) -- nothing added to commit but untracked files present...

How to import bugfix of master in all other branches without including the commits before?

git,version-control,merge,git-branch
I have some branches: branch 1 and branch 2. They have their origin from the master branch. Now there were some changes in the master branch. One is a critical bugfix, which has to be imported on branch 1 and 2. But there is a change (or perhaps multiple) which...

Git submodule fail because of link to unexisting revision

git,github,git-submodules
I've got a problem with git submodules pull: I have two reporistories, let's call them repo A and repo B. Repo B is a submodule of repo A, so I added repo B as a submodule of A with this command line: git submodule add [email protected]:Aracthor/B.git libvvgl But when I...

Rename a merged commit without losing that commit's parents

git,git-rebase
TL;DR: Is it possible to rename a commit from a merged (no fast forward merge) branch - without destroying history? I want to rename a commit. Something like rebase --interactive HEAD~5. But I want to keep the HEADs in their current position. Rebase will flatten the log. I'm using feature...

Can git ever send your code to a repo that isn't yours?

git,github,git-commit,git-add,git-init
Can running git add . git commit -m "message" in a git repo which you've initialized using git init ever result in your code being sent to a repo that is not yours? I am concerned because I did this while not logged in to my git hub account....

Associate git repo with existing fork network

git,github,git-fork
Using GitHub Enterprise, I forked a private repo. I then made the upstream repo public, which broke the 'fork' relationship between the public upstream and my private personal fork (as noted here). I've now also made my copy of the repo public. As far as I can tell, I can...

git: assume unchanged bit not set

git
I have a file in my repo for which I tried setting the assume unchanged bit but it's still showing up in my unstaged file list. When I list all files for which the assumed unchanged bit is set, I get no files. Below are the steps I did. /tmp/GitIssue...

Why doesn't “go get gopkg.in/…” work while “go get github.com/…” OK?

windows,git,powershell,github,go
I try to use go get gopkg.in/fatih/pool.v2 to install pool according to Readme.md, but can't success: C:\Users\xiaona\Documents\GitHub> go get -v gopkg.in/fatih/pool.v2 Fetching https://gopkg.in/fatih/pool.v2?go-get=1 https fetch failed. Fetching http://gopkg.in/fatih/pool.v2?go-get=1 import "gopkg.in/fatih/pool.v2": http/https fetch: Get http://gopkg.in/fatih/poo l.v2?go-get=1: dial tcp 107.178.216.236:80: ConnectEx tcp: A connection attempt failed because the connected party did not...

Where is git command after installing “GitHub for Windows”? [closed]

windows,git,powershell,github,github-for-windows
After installing GitHub for Windows, I can use git command in Powershell directly: C:\Users\xiaona\Documents\GitHub> git usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] The most commonly used git commands are: add Add file contents to the index bisect...

How to undo a successful “git cherry-pick”?

git
On a local repo, I've just exected git cherry-pick SHA without any conflicts or problems. I then realized I didn't want to do what I just did. I have not pushed this anywhere. How can I remove just this cherry pick? I'd like to know if there's a way to...

Cannot get my post-commit script to run (git)

git,hook
I want my remote git-repo to create a zip file from one folder in the master branch every time someone pushes. I renamed the post-commit.sample file and added the following: #!/bin/bash echo "creating zip" /usr/local/bin/git archive --format=zip --output=~/the-folder.zip master:the-folder echo "creating zip done" When I commit from my client I...

eb cli 3.0 is not putting my settings from my existing environment after connecting it

php,git,amazon-web-services,amazon,elastic-beanstalk
I created a customized Elastic Beanstalk environment from the web interface with configuration for VPC and other things. I now have a local repo that I want to connect to this created environment. I ran eb init and was able to spot my environment and selected it. I then ran...

PhpStorm Git folder modified color

git,version-control,phpstorm
My PhpStorm is coloring changed files when a project is under Git, I want to color the folder also so I can notice that there is a file changed under that colored folder. Thanks....

Working with 2 git repos simultaneously

git
My company purchased a license to certain software. The license includes access to the product's github account so we can get real-time updates by fetching code directly from the repository. Additionally, we also develop new functionality for this software in-house, and for that we have created a new git account...

Messed up a merge when trying to upgrade my Laravel application

git,laravel,github,merge
I have an existing laravel project which used an older version of Laravel 5.1. I wanted to upgrade my project to use Laravel 5.1.2. I followed this tutorial. So I added the laravel/laravel github repository into my git project as a remote called laravel, fetched it, then I created a...

Is there a way to push to a remote Git repository without having to fetch its objects?

git
Let's say I have a large Git repository stored in a server so multiple people can work with it. I want to be able to work with individual files from this repository, i.e. read, edit or insert new ones, without having to fetch all its contents, since it's a considerably...

Managing git repos

git,github
I am new to git and am unsure of a few things, would really appreciate if someone could answer the below questions. So I own 2 private git repos. Repo1 has numerous developers contributing. Repo2 is only for me. I want to be able to basically take a copy Repo1,...

How is a branch different from a folder, in a GitHub repository?

git,github,git-branch
I'm new to GitHub, and I don't exactly understand what a branch is. I got a feeling it is like a folder. Please explain: what exactly is the difference between folder and a branch?

How do I remove Tag in GitLab repository

git,tags,gitlab
I am using GitLab 7.7.2 and tried to remove Tag in a repository in GitLab. I could remove tag in a local repository but cannot remove tag in origin. How do I remove tag in GitLab repository? $ git tag -d Tag_AAA Deleted tag 'Tag_AAA' (was d10bff2) $ git push...

Deploy closed source aar maven repo to github

android,git,maven,github,gradle
I am using the following guide to publish a closed source aar as maven repo on github: http://andydyer.org/blog/2014/10/05/hosting-android-dependencies-on-github/ The github repo I am publishing to: https://github.com/tabishfayyaz/test-sdk In my gradle.build file I have: repositories { maven { url "https://github.com/tabishfayyaz/test-sdk/blob/master" } } dependencies { compile 'com.adscendmedia.sdk:adscendmedia:1.0.1' } However Android studio results in...

Git: Remove directory with quotes and backslashes from repo

git,directory,repository,special-characters
I have a directory in my git repository (but not on my local system) named "my\\directory-name" It contains two quotation marks and two backslashes. The problem is that with this directory in my repo it is not possible to checkout the contents completely because (error message:) git doesn't find a...

How do I move an unstaged file to untracked?

git,diff,track
Say this is what I'm looking at in git status: Changes not staged for commit: modified: Makefile.in Untracked files: ../node_modules/somepath/inverter_packet.js What I want to do is something like move Makefile.in from 'Changes not staged for commit' to 'Untracked files.' I know I can ignore changes with git update-index --assume-unchanged Makefile.in,...

Getting code from my forked repository

git,laravel,repository,laravel-5,composer-php
I made a fork from a repository called "chrisbjr/api-guard". the repository latest version is v2.2.2, and I made a release v2.2.3 from my fork. I have my own branch which is dev-fulluth, to get the code from my fork not from the main repo, composer has to contain the below...

How to get rid of .ignore file in Git?

git,file,bitbucket,ignore
I have create an ignore file , the list included .jar files . I then merged my branch to a development branch and even though I had resolved all my conflicts , I still had a lot of errors. Most of them had something to do with support.v4 (the import...

gitignore in PHPStorm

php,git,phpstorm
I create a .gitignore file and add two folders. But when I click "commit directory" in PHPStorm my folders are always in my commit changes. magento/media/ magento/var/ What is going wrong? In Terminal it works great ...

How to point branch to master after rebase complete

git,github
I am not very much clear about git rebase workflow, I try my self to rebase two different branches as mention below. But I am not able to update my branch to where master is pointing after rebase completed. Below are the steps which I performed git clone https://github.com/myadmin/testrepo.git git...

Remove tracked file from Git when file has $$ in name

git,bash
I am trying to remove a file from my Git repository: ~$$ClassDiagram.~vsdx I tried to remove it git rm --cached "~$$ClassDiagram.~vsdx" resulting in fatal: pathspec '~4192ClassDiagram.~vsdx' did not match any files The $$ turned into 4192. How can I delete this file from my repository so it no longer shows...

git add all tracked files - also those in parent directory

git,git-add
Lets say I have a git root folder mine_git, which has a subdirectory subdir there. So I've worked a bit, and I'm in subdir - git status lists all changed files: subdir$ git status -uno # On branch master # ... # # modified: mysubdirfile.txt # modified: ../a-main-file.txt # no...

Git sees duplicated modified file

git,git-add,git-status
In my repository there is a file (always that one) that always gives me trouble. I'm working with coffeescript and generating the js with a grunt task. For several times git status told me that this file was modified and needed to be added. The problem is that git sees...

How to get previous version using git and VS Express for web 2013?

git,visual-studio-2013
I want to find the cause of a bug which caused by one of the recent commits. Is it possible to get a specific version, and then undo the checkouts?

Stop git from bringing changes to master into my branch?

eclipse,git
I'll preface this by saying I'm relatively new to git, and I'm leaning on the Eclipse git GUI probably more than I should. Anyway, here's what happened: I created a remote branch from origin/master and checked out that branch. Another developer checked in a change to master. The change doesn't...