Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
164 views

I'm reading a post on the github.blog website about the changes introduced in Git version 2.51, and I came across a section that really confused me — it’s about the internal representation (format) of ...
dassd's user avatar
  • 223
0 votes
2 answers
156 views

I'm trying to understand how git stash works and I'm running into a problem when I try to restore the index (--index) when I have some uncommitted content. I couldn't figure out what was happening ...
dassd's user avatar
  • 223
0 votes
1 answer
128 views

I understand how Git detects conflicts in some other commands: git merge – Git finds the merge base (last common commit) and checks which side has made changes. If both sides changed the same lines, ...
dassd's user avatar
  • 223
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
2 votes
2 answers
137 views

I stashed some changes via git stash and then did git log --oneline --graph --all. I got the following: * 6088953 (refs/stash) WIP on main: 62c9742 G |\ | * 5b46ef8 index on main: 62c9742 G |/ * ...
dassd's user avatar
  • 223
0 votes
1 answer
78 views

So I did git stash -u with my local files. I got this error: Unlink of file 'data/somefile.pdf' failed. Should I try again? (y/n) The reason why I have a PDF file in the repo is because it's a test ...
alelom's user avatar
  • 3,308
0 votes
4 answers
394 views

From Git - git-stash Documentation: A stash entry is represented as a commit whose tree records the state of the working directory, and its first parent is the commit at HEAD when the entry was ...
Ooker's user avatar
  • 3,400
0 votes
0 answers
26 views

I started a complicated rebase, it'll take hours. However, we asked me to do a little fix on the develop branch. Is is possible to stash my ongoing rebase so that I can do the little fix an come back ...
Juh_'s user avatar
  • 15.9k
3 votes
1 answer
105 views

I am trying to find what the modification a particular stash, say stash@{1}, made to a file. I tried using the command: git stash show -p "stash@{1]" -- {filename} but got the error too ...
Yash Verma's user avatar
0 votes
4 answers
607 views

I'd like to pick some commit from the history and load its changes to my stash, just to use it freely anywhere. Is it possible? Edit: thanks for your answers, maybe I'd add that I hoped for some way ...
Karol Selak's user avatar
  • 4,904
1 vote
2 answers
81 views

I ran git stash pop and got some conflicts. It's a similar experience to conflicts from a rebase or merge, and I've been resolving them. I don't really understand what flow I'm supposed to be ...
Stephen's user avatar
  • 8,995
4 votes
2 answers
124 views

The following has happened a couple of time and I'm looking for an automated way to catch myself before I repeat the mistake. Solutions saying "just remember" or "just don't do that&...
beyarkay's user avatar
  • 1,183
0 votes
2 answers
282 views

I'm using git stash push -a in a script to save uncommitted changes and then sometime later run git stash pop in the same script to restore the stashed changes. I've run into a problem in which git ...
Geoff Alexander's user avatar
1 vote
1 answer
90 views

I want to stash my changes, but I often have temporary stashes that accumulate, which I want to delete. I also have important stashes, so "drop all" isn't an option. Deleting stashes one by ...
Afek Sakaju's user avatar
0 votes
1 answer
143 views

I need to know in my script whether a given commit is a standard commit or a stash entry. The method should work also for dropped stashes that are not garbage collected yet, so it cannot rely on ...
Piotr Siupa's user avatar
  • 5,275
0 votes
2 answers
126 views

I had a weird problem yesterday. Committed a change on branch add-trans with log message add transaction final Checked out to branch react, but one file was modified, I had to stash it Stashed the ...
gis's user avatar
  • 68
2 votes
1 answer
78 views

I often do something like git add/checkout/stash -- (find -name "*.extension"). For example, to revert all text files or all images. It works fine with add and checkout. When using add, ...
porky11's user avatar
  • 972
0 votes
4 answers
602 views

I had a situation I don't really understand with git 2.26.2: Implementing a new feature in a feature branch (say n-feature), I discovered two minor issues that should be fixed in the main branch (say ...
U. Windl's user avatar
  • 4,918
0 votes
0 answers
30 views

To start, I'm still a git noob... I know my way around with basic commands to get and manage content, open PR's, etc. We have a single .yaml file that we maintain for all of our API operations in our &...
Vernholio's user avatar
0 votes
0 answers
70 views

Something has happened to my local copy of a Git repo. When I try to synch it to the server (git pull) I get the following message. Updating 060b8f7..af17d97 error: Your local changes to the following ...
Jonathan Sachs's user avatar
0 votes
0 answers
43 views

after "git pull" I got the message that my local changes would be overwritten for some files so that I have to commit my changes or stash them before merge. Unfortunately I did "git ...
Mintuen's user avatar
  • 11
0 votes
1 answer
2k views

I built a new PC and I'd like to know if there's a way to copy all the stashes from Sourcetree on my old PC to the Sourcetree on the new PC. I copied the whole Atlassian folder from C:\Users<...
cooktheprogrammer's user avatar
0 votes
1 answer
113 views

When working on a git branch I got some changes in the latest commit. I suspect those changes to be wrong, but not sure. It is easy to remove the commit, and start over. I want to move that commit to ...
sav's user avatar
  • 76
0 votes
1 answer
45 views

After sudo git stash sudo git stash apply stash@{1} untracked files which were not stashed were deleted. Is there a way to restore them? I'm using Centos 7. Tried to list these files in git somewhere ...
Marina Panova's user avatar
0 votes
1 answer
101 views

I have a single SCSS file inside my stash, a few stashes back. Let's call it target.scss. It is the only file therein and contains a small handful of modified selectors. I have since modified target....
NerdyDeeds's user avatar
1 vote
1 answer
887 views

When I try to pop/apply a simple stash with --index that includes files from the index/staging area, I get the following output: $ git stash apply --index error: No valid patches in input (allow ...
Udi's user avatar
  • 30.8k
0 votes
1 answer
65 views

Here is the situation: I have an untracked file in my repository. I'd like to stash this file using git stash and I'd like to name the stash myself. So I found out about git stash save "message&...
Dude's user avatar
  • 250
2 votes
2 answers
328 views

Explanation: I make a heavy use of Git staging area to keep track of the changes that I'm already sure of while the working directory is often a mess of untested solutions, TODOs and a code that is ...
Piotr Siupa's user avatar
  • 5,275
0 votes
1 answer
49 views

When I use stash, I run git stash -u so that all files are stashed. When I want to look at the stash contents using git stash show -p, it will also include in the diff files which are in my .gitignore ...
Emmanuel Touzery's user avatar
4 votes
1 answer
821 views

I earlier ran git stash push -u ... to include an untracked file in the stash. Now, I've confirmed that this stash, stash@{2}, includes this untracked file (and tracked file changes). But, when I run ...
user1021's user avatar
  • 135
0 votes
1 answer
49 views

I've made some local changes and didn't pushed to repository, accident tally switched to another branch without stashing my changes, i did git checkout . Now i realized that after switching to my ...
Pavan Kumar's user avatar
4 votes
2 answers
1k views

Have you ever tried these steps with git stash? touch file1 git add file1 git stash cat .git/refs/stash # ==> copy the content, which is the latest stashed <sha_1> git stash clear # ==> we ...
Amin's user avatar
  • 433
-1 votes
2 answers
150 views

Using following stash list how you pull in the oldest stash while ensuring that you maintain it in the stash. The list is : stash@{0}: WIP on feature/feature1: 2f78364 New text stash@{1}: WIP on ...
Kavita Kulkarni's user avatar
0 votes
0 answers
64 views

I have a local repo with 50 submodules. My teammates recently made some deletions on the remote repo of 5 submodules. So I'm behind one commit and have extra submodules. I want to update my local I ...
tadm123's user avatar
  • 8,989
1 vote
2 answers
2k views

I want to checkout a previous commit, but I've made changes, so it's prompting me to commit or stash the changes first. I don't have the changes at the point where I want to commit them yet. Is this ...
gkeenley's user avatar
  • 7,708
0 votes
1 answer
327 views

I'm looking for a command(s) to git stash only the list of files that would be overwritten/conflicting when doing a git pull, all at once. I just want to accept all the remote changes and deal with ...
Nick K's user avatar
  • 23
1 vote
0 answers
153 views

In Sourcetree (3.4.10) if I stash my current folder, the files that were modified pops back again in my "unstaged" area. this even though I havn't selected the flag "keep staged ...
DDS's user avatar
  • 2,470
0 votes
1 answer
71 views

[git newbie here] Say I'm working on a new file and I'm writing the following story: Version1: A guy walks into a bar [here I tell my story] At this point I like what I wrote but I wish to ...
pylos's user avatar
  • 112
0 votes
0 answers
80 views

Hi guys I have the following issue. I performed a git stash first Then a git pull then sorted out the conflicts Now I am trying to do a git stash pop so as to bring back the changes I made and add ...
Munsa Mibenge's user avatar
0 votes
1 answer
115 views

git newbie here: I have a list of stashes: aws-0292@procolharum MINGW64 ~/phuber/magic (master) $ git stash list stash@{0}: On master: 30 or 31 stash@{1}: On master: music stash@{2}: On master: this ...
ProcolHarum's user avatar
54 votes
7 answers
58k views

I can't find the Stashes (nor REMOTES, BRANCHES, FILE HISTORY) menu in the Source Control (the one you open up with Ctrl-Shift-U) tool bar. This is how my Visual Studio Code looks like: And this is a ...
opensas's user avatar
  • 64.5k
2 votes
4 answers
2k views

I have done about 2 months work locally against main branch (without committing or staging anything). This included adding new (untracked) files and modifying existing tracked files. Then I wanted to ...
John Little's user avatar
  • 12.9k
0 votes
0 answers
40 views

I have run git stash, when I am upgrading flutter. Now I am trying to run "git stash apply" command, but I get this error. This is really important to me because it has been a lot of ...
mctracy's user avatar
  • 29
0 votes
1 answer
558 views

I was working with git bash, rebasing and stashing my changes when suddenly my PC crashed. After the restart, the disk was repairing, but when it loaded the repository no longer worked, git commands ...
EtherPaul's user avatar
  • 433
0 votes
1 answer
87 views

My GitLab project is configured to require GPG signatures for all pushed commits. However, when I try to push a stash up to GitLab, it's rejected with the message "Commit must be signed with a ...
Jeffrey Lemay's user avatar
2 votes
1 answer
3k views

Ran git stash to stash just one file out of 4 tracked files. Using git stash show displays not only that file but the other staged files as well. Why? For example: why does it show anything other than ...
Khanna111's user avatar
  • 3,961
2 votes
1 answer
2k views

I am using git version 2.32.0 I just want to export the full stash list saved in my old laptop to new laptop. How can I do so?
DrunkDragon's user avatar
2 votes
1 answer
178 views

If I forget to stage a modification/a file that is neccesary for a unit test, I want that that unit test to fail (when running inside of a pre-commit hook). The exception to this is gitignored files/...
Tobias Bergkvist's user avatar
1 vote
2 answers
733 views

I was working on the main branch, then I decided to create a new branch called test-branch. I tried git checkout feature first which warned me to stash or commit my changes. I stashed them using git ...
Diwas's user avatar
  • 177
1 vote
2 answers
7k views

I don't have the exact setup on me right now, but I remember adding a couple of new files to my tree and then wanting to stash them. Instead of stashing correctly, git stash returned an error: error: ...
Nik Tedig's user avatar
  • 493

1
2 3 4 5
15