Questions tagged [github-desktop]

GitHub Desktop is a graphical user interface for macOS and Windows, used to contribute to projects on GitHub and GitHub Enterprise.

About GitHub Desktop

GitHub Desktop allows you to:

Focus on what matters instead of fighting with Git. Whether you're new to Git or a seasoned user, GitHub Desktop simplifies your development workflow.

Features

  • Attributing commits with collaborators
  • Checkout branches with pull requests and view CI statuses
  • Syntax highlighted diffs
  • Expanded image diffs
  • Editor and shell integrations
  • Open-sourced and community-supported

More info

The application can be downloaded from the Github Desktop website and its source code can be found on GitHub.

388 questions
84
votes
6 answers

Going back to a previous commit in Github Desktop

I am trying to use GitHub Desktop (i.e. the GUI application - NOT command line) to go back to a previous commit (on the same branch). Something that I would have thought is a core feature, since it's the primary reason for using source control in…
morishuz
  • 2,302
  • 4
  • 21
  • 21
71
votes
8 answers

How do I delete a local branch on Github Desktop?

Last week I upgraded my Windows Github to Github Desktop. It is certainly a lot faster than that last update they made for Github Windows. It also has a nice little visual timeline of commits and maybe I am being dumb, but the ability to delete…
Bruffstar
  • 1,249
  • 1
  • 10
  • 18
41
votes
10 answers

VSCODE & GitHub Desktop pre-commit hook: npx: command not found

I am starting a new repo, thinking I should use the most recent Huksy v6 which is installed from LintStaged using their setup guide: npx mrm lint-staged // package.json updated with: "husky": ">=6", "lint-staged": ">=10", This adds necessary…
Phil Lucks
  • 2,704
  • 6
  • 31
  • 57
36
votes
12 answers

How can I undo discard changes in GitHub Desktop?

Is there any way to undo discard changes in GitHub Desktop, after the Undo button has disappeared? I am talking about GitHub Desktop's undo feature, not git in general.
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
29
votes
2 answers

How to sync your forked repo with original Repo in Github Desktop

Please Read this before marking as Duplicate I know there is a solution for CMD at https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository but i asked for GitHub Desktop, If you can't answer then dont mark as Duplicate…
zsubzwary
  • 1,196
  • 1
  • 14
  • 22
29
votes
1 answer

GitHub Desktop is committing ignored files

My GitHub Desktop app is trying to commit a bunch of files that are (supposedly) ignored. As you can see, the entire .metadata folder is listed in my top-level .gitignore file. Still, there are loads of files from that folder that are being…
Derek
  • 799
  • 2
  • 8
  • 17
28
votes
2 answers

Discard all changes at once using GitHub Desktop

How can I discard all changes at once in GitHub Desktop? (I use it on Windows) I used to do: but can't see the option any more since GitHub for Windows upgraded itself silently (and changed its name to GitHub Desktop on the way). I don't want to do…
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
23
votes
4 answers

A lock file already exists in the repository, which blocks this operation from completing

I'm working on an ASP.NET Core project. I'm trying to push a commit to my branch using GitHub Desktop. But every time I try to commit, I keep getting this error: A lock file already exists in the repository, which blocks this operation from…
Chrys
  • 231
  • 1
  • 2
  • 4
21
votes
4 answers

Github Desktop Authentication Failed

Using: Windows 10, Github Desktop, Git 2.19.1.windows.1(64bit), VisualStudio VSTS Background: Managed to add the repository I had in my machine, but I can't do anything with it. I have access to the remote repository, I used gittortoise before, and…
20
votes
3 answers

How to keep a GitHub fork up to date without a merge commit or using CLI?

The normal GitHub flow to contribute to a repo is to create a fork of the upstream, clone a local copy where you make changes, then push back up to your fork and then create a PR to have your changes merged into upstream. But if upstream changes…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
18
votes
2 answers

Can't checkout remote branch using GitHub Desktop

When I first clone a repo using GitHub Desktop (windows version), I'm able to see all of the branches and can checkout the branches. However, if another contributor creates a new remote branch (after I've done the clone), GitHub Desktop isn't able…
angrycrab
  • 830
  • 1
  • 9
  • 23
17
votes
6 answers

"Commit failed - exit code 1 received" when trying to commit a new local reprository in gihub desktop

when I am trying to commit my new local repository at GitHub from GitHub-desktop it is throwing an error "Commit failed - exit code 1 received"
Rahul Raj
  • 349
  • 1
  • 2
  • 10
17
votes
4 answers

How Can I Configure GitHub Desktop/Windows to Work with a Proxy?

New to working with git in Windows. I downloaded the GitHub Desktop application and can connect my account, but doing pushes/pulls fails because of an unresolved host. Asking around the workplace I got the following suggestion to type this command…
raphael
  • 2,762
  • 5
  • 26
  • 55
15
votes
1 answer

Can Github Desktop show a tree for the changes view?

Is there a way to show the list of file changes in Github Desktop as a tree instead of a flat file list?
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
15
votes
3 answers

Rollback uncommitted changes in GitHub Desktop (or Github for Windows)

I'm using Github Desktop (previously called GitHub for Windows) and I made a bunch of changes to my local files. It became such a mess that I decided I just want to rollback my local files to where they were the last time I made a commit. I haven't…
Mark Cramer
  • 2,614
  • 5
  • 33
  • 57
1
2 3
25 26