git-add Questions

1

git add --patch provides a great interface for reviewing unstaged changes and then staging only the ones that are wanted in the next commit. Great, except for one thing: there is no obvious way to...
Aleph asked 1/3, 2018 at 21:16

4

Solved

 Why is that git diff thinks there are no changes ..even if git status reports them as modified? $ git status On branch master Your branch is ahead of 'origin/master' by 2 commits. (use "git pus...
Progestational asked 30/9, 2014 at 17:43

0

I have a lot of files where only the file permissions are different. But some files are actually modified. I would like to add all files where only the file permissions are changed into its own co...
Origami asked 2/11, 2017 at 10:29

10

Is there a way to add all files no matter what you do to them whether it be deleted, untracked, etc? like for a commit. I just don't want to have to git add or git rm all my files every time I comm...
Aubade asked 16/8, 2010 at 22:50

1

Solved

After the first two hours of working all of the sudden, I can't seem to git add one file. Casper@PC2015 MINGW64 /c/Workspace/edoping (develop) $ git add . Casper@PC2015 MINGW64 /c/Workspace/edopi...
Waddington asked 2/3, 2017 at 10:9

1

Solved

I have a very frustrating error when trying to manually edit hunks while using the command: git add -p I have already looked through many of the existing questions on this site, including this o...
Swiercz asked 29/1, 2017 at 4:56

3

Solved

What happens if I'm creating the initial commit from my working (parent) directory, but there are subdirs with independently checked-out git repos? I simply did git add . but that brought me to a ...
Seismic asked 9/2, 2015 at 14:59

2

Solved

I am making a git repository for my MacVim installation. Some of the plugins in my repository have their own .git folders and repo. The problem is... when I try to add one of these folders to my ma...
Rumormonger asked 24/10, 2013 at 21:0

1

Solved

Git doesn't always choose hunk boundaries correctly, when calculating a changeset from snapshots. git diff has a --diff-algorithm option that allows some tweaking in this regard; git diff --minimal...
Fruge asked 29/5, 2016 at 12:12

4

Solved

Is there a mercurial equivalent of git add -p? Quoting from man, git-add with the option -p (or --patch) does the following: Interactively choose hunks of patch between the index and the work ...
Stereotype asked 14/10, 2011 at 8:22

2

Solved

I am using bitbucket web interface and have created a new project "Test_Project". In this project, I am able to create a new repository - 'Module1' using Create repository option. Now I want to cr...
Understrapper asked 31/3, 2016 at 8:21

2

Solved

I recently updated Git to version 2.7.2.windows.1 (I am running Windows 7 64-bit). Since the update, I have been unable to run git add with the -p option on files within a certain directory (or its...
Fou asked 8/3, 2016 at 22:20

3

Solved

I have this patch file, it contains a bunch of modifications that I'd like to apply to a git branch. But I don't want to make one unique commit with all those modifications, instead I'd like to spl...
Liven asked 21/1, 2016 at 19:20

1

Solved

Doing a git add -p I see a one diff and the list of choices : ~/workspace$ git add -p diff --git a/gulpfile.js b/gulpfile.js index cf91028..c3a0964 100644 --- a/gulpfile.js +++ b/gulpfile.js ...
Obliquity asked 30/12, 2015 at 10:13

2

For a project I'm working on, I want to use: git add . -A to add some files to the stage. The problem is that Git thinks these files are unchanged from the last commit, so they are ignored. Howe...
Animus asked 3/9, 2013 at 20:9

1

Solved

git add -p is very convenient for staging changes in an interactive fashion. At each change, it prompts the user to press a key to determine what Git should do with the change in question: Stage t...
Stupendous asked 19/8, 2015 at 20:32

1

Solved

I compile binaries for OS X using GitHub' s electron environment and want to add the output to a git repository. I tried git add . error: readlink("sulu.app/Contents/Frameworks/Electron Framewo...
Jainism asked 5/7, 2015 at 17:1

1

Solved

I often encounter the following scenario: modified: assembly/main.debug.s modified: ../src/cd/Config.java modified: ../src/cd/memoization/cfg/SubgraphFinder.java modified: ../src/cd/memoization/cf...
Durant asked 23/5, 2015 at 11:0

4

Solved

I want to unstage all file deletes. Is there an easy way? I want to apply this to the file pattern of all deletes.
Drice asked 22/11, 2010 at 20:4

2

It appears that I've somehow gotten git into a state in which it won't commit because a file that's been deleted doesn't exist: ~/src$ git status -u # On branch master # Your branch is ahead of '...
Ret asked 3/2, 2015 at 23:0

2

Solved

I made a mistake and called git add -all, now all files are added. I did not make a commit and push. How can I undo my action?
Nephogram asked 18/1, 2015 at 15:0

2

Solved

Okay, so I was searching "How to Remove Manually Deleted files from Git" without actually doing git rm file.txt for each file when I came across "Removing multiple files from a Git repo that have a...
Hoyos asked 21/2, 2013 at 20:11

4

Solved

Many times I mistakenly add unwanted files to the staging area using the git add . command. I wonder if there is a way I could completely disable this command, so that I only use git add file?
Exponential asked 17/9, 2014 at 6:47

3

Solved

I'd like to use Git's patience diff algorithm (the one you get if you invoke git diff with the --patience argument) with git add -p. How can I do this? Background: I'm working with some XML files,...
Logicize asked 14/9, 2012 at 13:24

2

Solved

I have the following understanding of the git add file and git checkout -- file (but I am not sure if it is correct). Whenever we edit files with a text editor, we do it in the working directory. ...
Kussell asked 5/12, 2013 at 10:8

© 2022 - 2024 — McMap. All rights reserved.