Skip to main content

Questions tagged [git-checkout]

Checkout a branch or file to the current working tree in a Git repo.

git-checkout
0 votes
0 answers
24 views

Creating Git Tag to a repository

I am checking out 3 repos and out of which 1 repo is from Github and other 2 are from bitbucket. While creation of Tags, I want to create it only for the one which was checked out from Github, and not ...
Kivi's user avatar
  • 525
1 vote
1 answer
50 views

Confused about Git merge with multiple branches. How can I merge the changes made in a branch created from an existing Pull Request branch? [duplicate]

I had a project where I had to make some changes. I created a first Pull Request: git checkout -b v1 This PR is waiting to be reviewed and approved by my team lead. Meanwhile, I had to open a second ...
MichaelScott's user avatar
-1 votes
0 answers
38 views

Issues connecting a local workspace to a GitHub repo and creating branches

I'm trying to connect a local workspace to an identical repository on GitHub. In this instance, I cannot use git clone so I'm trying to find a work-around. I seem to be able to set the remote url fine,...
Nick H's user avatar
  • 1
-1 votes
2 answers
47 views

how to push an old reseted or reverted heads

I can go back and forward in my history using git checkout heads git revert heads git reset heads And when I do git push origin main I get Everything up-to-date and no change on remote server. how to ...
Besmella Kazimy's user avatar
4 votes
1 answer
29 views

Git checkout with exclusions fails when branch isn't local

I'm trying to checkout a branch, but want to exclude the REAMDE.md and CHANGELOG.md files. Working: git clone [url] --no-checkout . git checkout BranchnameA git checkout BranchnameB # (any other ...
Timmiej93's user avatar
  • 1,407
0 votes
0 answers
44 views

How do I revert git checkout from a feature branch? [duplicate]

I'm new to git. I generally create a new feature branch from master & then work on the task. Recently, I executed git checkout instead of git switch when moving from master to my existing feature ...
Pranjal Successena's user avatar
0 votes
1 answer
100 views

Checkout step in Azure Pipelines is giving Smudge downloading error when LFS is set to true

I have in my Azure Pipeline, checkout step with lfs:true in my release branch. steps: - checkout: self clean: true lfs: true When the build runs, it gives the following error. Error downloading ...
Yash Dutt's user avatar
  • 197
0 votes
3 answers
54 views

My VS Project .sln and .csproj missing after pulling from another branch

My project had a master branch and two separate branch for two users - branch1 and branch2. After merging the changes from branch2 to branch1, branch2 is now missing its .sln file and .csproj file. ...
Mar97's user avatar
  • 1
1 vote
4 answers
75 views

Why checking out to a remote branch creates one locally

Let's say there's a remote branch named origin/nameofbranch. When I checkout to this branch using Git in Intellij, it automatically creates a local branch with the same name, why is that happening?
Mer Mer's user avatar
  • 174
0 votes
1 answer
59 views

Can't checkout a branch because a submodule's commit is no longer on its remote

This is similar to Submodule commited branch no longer available but differnt such that its solution isn't applicable. I just cloned a repo, and it has submodules, I have done a submodule update/init ...
UpAndAdam's user avatar
  • 5,328
0 votes
0 answers
39 views

Git checkout updates local branch and remote repository at the same time

I have a local repository with 3 branches - main, major-test, recovery - and a remote repository with equivalent branches - main, major-test, recovery. My current working branch is major-test. During ...
AVO's user avatar
  • 31
1 vote
0 answers
691 views

Git LFS Repo Fails To Checkout On Jenkins With Status Code 130

I have several CIs set up on Jenkins to simply checkout master from a git LFS repo when there are new commits. Every time the job builds however, it fails with the following error message: Checking ...
Jesse Zuniga's user avatar
1 vote
1 answer
56 views

Non-interactive git restore for specific lines in a file

I have a modified and not staged file myfile.txt. I want to git restore (or git checkout) myfile.txt, but it must undo the modifications done only within the line range 15-17. How to do that? I've ...
user avatar
0 votes
1 answer
97 views

How to keep changes when switching branches without using `git stash`

I made some changes on branch x but I have not staged or committed any new changes, I get: % git checkout other/existing/branch error: Your local changes to the following files would be overwritten by ...
Alexander Mills's user avatar
0 votes
0 answers
55 views

Why does Git fetch remember and use deleted local tracking branches

Can you tell me why git seems to remember and use its “fetch memory” for a deleted local repository? I delete a local branch that was tracking a remote, and when that remote is completely rebuilt with ...
user6096790's user avatar

15 30 50 per page
1
2 3 4 5
74