FAQ

IndexTagsArchivesAbout
  • Get all files that have been modified in git branch

    2022-10-21

    Question Is there a way to see what files have changed in a branch? Answer An alternative to the answer by @Marco Ponti, and avoiding the checkout: git diff --name-only <notMainDev> $(git merge-base <notMainDev> <mainDev>) If your particular shell doesn't understand the $() construct, use back-ticks instead.

    #git

  • Git: See my last commit

    2022-10-21

    Question I just want to see the files that were committed in the last commit exactly as I saw the list when I did git commit. Unfortunately searching for git "last commit" log in Google gets me nowhere. And git diff HEAD^..HEAD is not what I need, of course, since it spews the guts of the change too. Answer As determined via comments, it appears that the OP is looking for…

    #git

  • Message "Support for password authentication was removed."

    2022-10-20

    Question I got this error on my console when I tried to use git pull: remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for ... It's very weird, because I just followed the documentation and created a token two weeks ago on GitHub. The token expires on Tue, Oct 26, 2021. Why has this been removed today?…

    #git

  • How do I see the commit differences between branches in git?

    2022-10-19

    Question I'm on branch-X and have added a couple more commits on top of it. I want to see all the differences between MASTER and the branch that I am on in terms of commits. I could just do a git checkout master git log and then a git checkout branch-X git log and visually diff these, but I'm hoping for an easier, less error-prone method. Answer You can easily do that with…

    #git

  • In a Git repository, how to properly rename a directory?

    2022-10-18

    Question I think it should work to copy the directory to be renamed to a new directory with desired name, and delete the old directory, and git add, git commit and push everything. But is this the best way? Answer Basic rename (or move): git mv <old name> <new name> Case sensitive rename—eg. from casesensitive to CaseSensitive—you must use a two step: git mv casesensitive tmp git mv tmp CaseSensitive (More about case sensitivity in Git…)…

    #git

  • Rollback to an old Git commit in a public repo

    2022-10-18

    Question How can I go about rolling back to a specific commit in git? The best answer someone could give me was to use git revert X times until I reach the desired commit. So let's say I want to revert back to a commit that's 20 commits old, I'd have to run it 20 times. Is there an easier way to do this? I can't use reset because this repository is public.…

    #git

  • Git and nasty "error: cannot lock existing info/refs fatal"

    2022-10-17

    Question After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push: git push origin master Errors with: error: cannot lock existing info/refs fatal: git-http-push failed This case regards already existing repository. What I did before, was: git config --global http.sslVerify false git init git remote add [url] git clone change data git commit At 'bettercodes' I have no access to git log. I'm using Windows.…

    #git

  • «
  • 71
  • 72
  • 73
  • 74
  • 75
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^