Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
43 views

I'm looking at the official git-status documentation page (https://git-scm.com/docs/git-status) specifically the table that describes the short format output (git status -s): X Y Meaning -...
Alex's user avatar
  • 13
0 votes
2 answers
63 views

I'm having a difficult time with untracked changes shown as directories in git status. This is particularly problematic when the number of untracked changes is huge. Now there are some folders I did ...
Meenohara's user avatar
  • 312
1 vote
1 answer
63 views

I renamed chapter5.tex to chapter6.tex by git mv, and I used git status and found that git tracked the rename operation. However, after that, I renamed chapter4.tex to chapter5.tex by git mv, I found ...
Yi Wangtian's user avatar
0 votes
1 answer
70 views

I work in C# with Unity, and it often touches a lot of files that don't want to commit. My changes that I want to commit are almost always exclusively .cs files. I created a git alias to stage all of ...
Nic Foster's user avatar
  • 2,914
2 votes
0 answers
184 views

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 ...
Mark's user avatar
  • 2,066
-2 votes
2 answers
3k views

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 ...
learner's user avatar
  • 1,097
1 vote
0 answers
23 views

I'm having a git error only on the Windows side of a Linux NFS. I'm trying to resolve this error and have some control of my Git repository in Windows. This is the error I'm seeing on Windows command ...
rlippy's user avatar
  • 11
0 votes
0 answers
45 views

My git on my local machine was working well initially doing all the work adding and commiting just fine, but after i switched off my computer and got back to it again when i do "git status" ...
Zondi's user avatar
  • 1
0 votes
1 answer
214 views

$ git status warning: could not open directory '$RECYCLE.BIN/S-1-5-18/': Permission denied warning: could not open directory '$RECYCLE.BIN/S-1-5-21-1320611954-3689187021-1978721250-1002/': Permission ...
Rishabh Patidar's user avatar
-2 votes
1 answer
64 views

I create a repository in the main directory of my mac for mistake. Then with gitgraph extension on vs code i see +10k file added and ready to commit, i press remove modify and now all of my files are ...
Andrea Lotti's user avatar
-1 votes
1 answer
510 views

When you run git commit without the -m flag.... git does all of these things for you: Generates some content based on the current state of the working dir to display in your editor, with a # prefix ...
LaVache's user avatar
  • 2,729
0 votes
0 answers
34 views

When i rename part of file from hyphen to underscore original name of file in git status For example My-file.examaple wil became My\342\200\223file.example. But wierd is when I use Jetbrains gui for ...
Imolo's user avatar
  • 1
0 votes
1 answer
120 views

My dotfiles are in a barebone git repository. To avoid showing all files in my home folder every time I run git status, I set status.showUntrackedFiles = no. However, I'd like the $HOME/.zsh/custom ...
Ulysse BN's user avatar
  • 11.8k
-1 votes
1 answer
328 views

I just created my own github page which is finalexam96.github.io On Visual Studio Code, I did git clone https://github.com/finalexam96/finalexam96.github.io.git I created an index.html file committed ...
Kira Jeewoo Choi's user avatar
0 votes
2 answers
651 views

I'm new to coding. I learned about the .gitignore file today, and I succeeded in adding an unwanted file to the .gitignore file but could not add one file on the .gitignore file. Untracked files: (...
calipalm's user avatar
0 votes
1 answer
117 views

How do I show only untracked subdirectories that are git repos? Do I use git diff, git status, or git ls? What options do I use? The closest thing I could find is: git diff --name-only --diff-filter=...
Rob Bednark's user avatar
  • 28.9k
0 votes
2 answers
1k views

How do I show only filenames for all modified files in my repository? git status adds additional output, e.g., $ git status On branch master Your branch is up to date with 'origin/master'. Changes ...
Rob Bednark's user avatar
  • 28.9k
0 votes
2 answers
94 views

I have created a new git branch in my GatsbyJS project to work on a new feature, then running "gatsby clean" + "gatsby develop" to view the update, if I shut down the server and ...
Raul Reyes's user avatar
-2 votes
1 answer
50 views

I made changes in my project, then did git reset --hard HEAD, but I notice that some of the changes are still present. When I run git status I get Your branch is behind '<my branch>' by 1 commit,...
gkeenley's user avatar
  • 7,708
0 votes
2 answers
2k views

When trying to git status I get the following git status fatal: not a git repository: D:/path/path/path/.git/worktrees/horus_app_v100 the path worktrees/horus_app_v100 doesn't exist I recently deleted ...
Projetinho's user avatar
0 votes
1 answer
80 views

I have a new created directory "supplier_directory", in which there are 3 new files. I need to add these files into different commits. Commit N1 : file1 only Commit N2 : file2 and file3 I'...
oussa amh's user avatar
0 votes
0 answers
24 views

I was wondering if there is a way to get git statistics for changed/added/removed lines per user for a specific filetype? i.e.: User A added 1.000.000 lines and removed 800.000. Is there a way to ...
aguest's user avatar
  • 1
1 vote
1 answer
39 views

Files committed via PhpStorm's integrated Git handling still show as modified when viewed with commandline git status. They still push successfully to the remote on GitLab.
Punksta's user avatar
4 votes
3 answers
20k views

I am collaborating with my teammates on a Project in which one of my teammate has uploaded our project on GitHub. I want to clone the repository into my VS Code. Here are the steps I have performed: ...
user avatar
2 votes
2 answers
65 views

I'm currently reviewing Practical Git by Johan Abildskov in preparation for an upcoming job. The first example I came across seems to be impossible. Here's how it starts: $ ls A B C D $ git status On ...
NaNCat's user avatar
  • 109
-2 votes
3 answers
214 views

I work on a project and I have a problem on my mac. After merging my branch into the main branch by the supervisor I pulled the git project with § git pull After that I did § git status and I ...
Rashid Katamesh's user avatar
0 votes
1 answer
159 views

I have a parent folder named 'gitt' Inside this, I have four subfolders 'gitt1' 'gitt2' 'gitt3' 'gitt4' Each of these four subfolders have a few folders, including a git repository folder which has ...
Stephen Mbonu Ugochukwu's user avatar
-1 votes
2 answers
4k views

I have created a file called basic and I have created a branch called new. After moving to the new branch, I want to switch to the master branch, hence i used git checkout master. Unfortunately, the ...
Dun Yann's user avatar
0 votes
1 answer
313 views

Eventhough I have made unsaved changes to the README.md file, git status does not reflect modified file and instead says nothing to commit, why is this so?
user95434's user avatar
2 votes
3 answers
782 views

I am trying to set up custom colors for git status, as described here While using predefined color names works: [color "status"] changed = yellow normal using ANSI 256 color codes does ...
Martin Vegter's user avatar
0 votes
2 answers
713 views

We have a .gitattributes file to instruct git about which files are binary files - but I'm finding running git status is problematic in cases where we update hundreds of binary files along with a ...
Slbox's user avatar
  • 13.5k
4 votes
2 answers
1k views

I have a bare repo cloned and need to check if the repo is broken. I tried running git status, but it says: fatal: this operation must be run in a work tree. I have also tried running git gc and it ...
Muni's user avatar
  • 41
0 votes
1 answer
109 views

In git, if a new folder is not staged, git status will only print folder name as following: Untracked files: (use "git add <file>..." to include in what will be committed) ...
lxvs's user avatar
  • 1,090
3 votes
1 answer
362 views

I have tried to git add a file. But when I check git status, the file is still marked as "Changes not staged for commit". I have read many similar questions and I have tried everything: ...
Andre's user avatar
  • 383
0 votes
2 answers
123 views

I know there is a shortcut for this, and cannot remember it. I am working in a repository, and have about 8 files I need to add and commit, and 2 that are modified, that I do not need to commit. ...
tx291's user avatar
  • 1,341
3 votes
1 answer
846 views

I try to find difference of 2 commit ids. When I git diff, it prints change status of files. 'M' means 'modify'. 'D' means 'delete'. 'A' means 'add'. But what does the 'R087' stand for? git diff ...
mariolu's user avatar
  • 758
0 votes
1 answer
103 views

Typically git status shows: Current branch name (or detached HEAD status) Whether upstream branch (if any) is ahead, behind or diverged Changed staged for commit Changes not staged for commit ...
Vi.'s user avatar
  • 39.1k
0 votes
1 answer
811 views

I am checking status of me repo using " git status ". but it shows that i used to changes to be committed , here the commands are : ~/udacity-git-course/new-git-project (master) $ git status ...
Ritik singla's user avatar
0 votes
1 answer
202 views

For the life of me I can't seem to 'remove' an untracked sub-module/directory from the main git repository. I've tried various syntaxes, but I keep getting the 'pathspec' error stating there was no ...
skeetastax's user avatar
  • 1,826
1 vote
0 answers
131 views

I'm sorry if this problem is phrased somewhat strange, but I am kind of lost here and don't even know how to google this issue. Running git status prints the usual list of modified files, but it adds ...
Gileos's user avatar
  • 133
-1 votes
1 answer
555 views

:git status On branch main Your branch is up to date with 'origin/main'. Untracked files: (use "git add ..." to include in what will be committed) "\357\200\233\357\200\233\357\200\233\...
Devesh pandey's user avatar
1 vote
1 answer
374 views

With git (and other revision control apps like mercurial), you have a "status" functionality for a repository, which lists the repo files which are Modified, Deleted, Moved, Added or Missing....
einpoklum's user avatar
  • 139k
2 votes
2 answers
288 views

Here is the situation, say I would like to track files in **/data but do not want to see their status (because there are too many files and I generally do not care the details there), is it possible? ...
zyy's user avatar
  • 1,654
2 votes
1 answer
493 views

We have a repo with a bunch of submodules and we are currently working on a develop branch. Starting from the same common commit, two developers, A and B, made some changes to some files (unimportant ...
godo's user avatar
  • 335
4 votes
2 answers
3k views

I am currently maintaining my notes in markdown files, but the editor I use(marktext) adds new empty lines if I open an existing file. This addition of new empty lines get tracked by git and git keeps ...
Shrijit Basak's user avatar
2 votes
2 answers
861 views

I need a help with this: I want to loop the git status code without status code or together status code in one line; I'm using the code below: # file.sh files=$(git status --porcelain) for file in $...
Angel Omar Rojas Pacheco's user avatar
12 votes
1 answer
12k views

I'm using Oh My Zsh with the Powerlevel10k theme. I've installed the recommended fonts directly from the Powerlevel10k docs, updated the settings for fonts in Terminal, iTerm2, and VS Code according ...
Sarah's user avatar
  • 160
4 votes
1 answer
6k views

I am more familiar with using git on the command line (MacOS, especially). However, I sometimes try to use the Android Studio VCS "commit", as it is sometimes slightly faster to use. The weird problem ...
auspicious99's user avatar
  • 4,451
0 votes
0 answers
26 views

git status says: "Your branch is up to date with 'origin/master'" the origin/master is being tracked well after: git branch --set-upstream-to=remotes/origin/master Branch 'master' set up to ...
Igor's user avatar
  • 1
-1 votes
1 answer
189 views

I have recently cloned a repo from git and havn't yet made any changes, all I have done is open the code up in VS19. In git bash i typed 'git status' and there is an untracked file im not sure what to ...
Reeves62's user avatar
  • 149

1
2 3 4 5