Questions tagged [git-add]
git-add - Add file contents to the index
git-add
343
questions
1
vote
0
answers
46
views
Why is "git add -A" so much slower than "git status"? And could I speed up my "git add"s by working from "git status" instead?
In git, I usually prefer to not use the staging area very much, and just work with my working tree. Call me crazy, but I don't get much use out of this extra step before committing, etc., of adding ...
0
votes
0
answers
47
views
Git (v 2.20) is no adding text files others do [duplicate]
I am using git version
git version 2.20.0.windows.1
I have problem with adding *.txt files.
I have created a project. There was only PCB files. At the beginning.
I have commited it.
Then I have ...
-2
votes
2
answers
119
views
Changes not staged for commit - What are the 3-states in Git? How to use them?
I am working on the main branch updating some files but not the ones on the list below, however whenever I run git status I get the message below with the files highlighted in red which suggests there ...
3
votes
2
answers
59
views
Git+Bash / GitBash: Add files matching both first-letter-uppercase or all-lowercase filenames of certain pattern along with respective plurals
I have some Laravel/Livewire files matching filename patterns like seen in below:
app/Livewire/String1Table.php
app/Livewire/String1s.php
app/Livewire/EditString1.php
app/Models/String2Table.php
app/...
0
votes
0
answers
42
views
Configure `git add -p` to split hunks automatically
During git add interactive, is it possible to automatically split the hunk (where applicable)?
-1
votes
3
answers
724
views
How do i fix this fatal:bad boolean config value
$ git push
fatal: bad boolean config value 'origin' for 'push.autosetupremote'
I want to push in git but an error appears as above
im using new version git
I hope to be able to git push some of my ...
-1
votes
1
answer
59
views
How do I solve this problem in github please [duplicate]
I'm getting this warning anytime I try to git add . all my file in my folder: warning: in the working copy of 'calculator-app-main/.gitignore', LF will be replaced by CRLF the next time Git touches it
...
0
votes
1
answer
71
views
How to stage the files to the local git repository where file names has space in them? [duplicate]
I have 2 files locally: File 1.txt and File 2.txt.
When I stage the files with the command git add File 2.txt, it is giving me the below error:
fatal: pathspec 'File' did not match any files
0
votes
1
answer
228
views
git add fails with fatal: src/mytest.pax added file untagged, set correct file tag
When I try to add files to a commit group I get an error.
Command: git add .
Error: fatal: src/python/files/mytest.pax added file untagged, set correct file tag
git —version: git version 2.3....
0
votes
0
answers
36
views
track a file with git repo as well as separate git bare repo
I use to manage my dotfiles with a git bare repository.
However some of my dotfiles are already in git repositories existing for a long time.
I dont want to lose all the change history so I would ...
2
votes
0
answers
58
views
Customize "Stage this hunk" prompt in `git add -p`?
I've started reusing git add -p as a building block for other situations where it's nice to have an interactive interface to accept/reject/edit changes.
It's profoundly useful! The biggest win for me ...
0
votes
2
answers
347
views
Unable to Stage Changes in Git for Specific Files, Getting Consistent Output
I'm currently facing a persistent issue with staging changes using Git. No matter which commands I try, I keep getting the same output when I check git status. The output consistently looks like this:
...
0
votes
1
answer
64
views
Does git add -A respect .gitignore?
I have several target subdirectories in my project that I do not want to track. So I removed them all with:
find . -type d -name 'target' -print0 | xargs -0 git rm --cached -r --
I also added ./*/...
0
votes
1
answer
45
views
How can I `git add` on cloned git repo by SSH?
I can git add just add new file on repo directory. but when I make directory and add new file to this directory, I cannot git add.
Note:
I ran git clone for clone private repo by ssh public key
$ ...
-1
votes
1
answer
636
views
can't clone or add in git repo
when ever I'm trying to check my git status or want to clone in my repsitry the cmd is showing me this, can someone report a problem & help me out with an error?