tagged [git]

How to uncommit my last commit in Git

How to uncommit my last commit in Git How can I uncommit my last commit in git? Is it or ?

28 Jan at 21:41

What is git tag, How to create tags & How to checkout git remote tag(s)

What is git tag, How to create tags & How to checkout git remote tag(s) when I checkout remote git tag use command like this: I got error like this: > error: pathspec `origin/remote_tag_name` did not ...

28 Jun at 16:12

How do I clone all remote branches?

How do I clone all remote branches? My `master` and `development` branches are tracked remotely on [GitHub](http://en.wikipedia.org/wiki/GitHub). How do I clone both these branches?

What is the difference between 'git pull' and 'git fetch'?

What is the difference between 'git pull' and 'git fetch'? What are the differences between [git pull](https://git-scm.com/docs/git-pull) and [git fetch](https://git-scm.com/docs/git-fetch)?

Git push requires username and password

Git push requires username and password I cloned a Git repository from my GitHub account to my PC. I want to work with both my PC and laptop, but with one GitHub account. When I try to push to or pull...

What does FETCH_HEAD in Git mean?

What does FETCH_HEAD in Git mean? `git pull --help` says: > In its default mode, `git pull` is shorthand for `git fetch` followed by `git merge FETCH_HEAD`. What is this `FETCH_HEAD` and what is actua...

23 Mar at 23:45

How to convert a normal Git repository to a bare one?

How to convert a normal Git repository to a bare one? How can I convert a 'normal' Git repository to a bare one? The main difference seems to be: - in the normal Git repository, you have a `.git` fold...

Remove sensitive files and their commits from Git history

Remove sensitive files and their commits from Git history I would like to put a Git project on GitHub but it contains certain files with sensitive data (usernames and passwords, like /config/deploy.rb...

How to get just one file from another branch?

How to get just one file from another branch? I have a `master` branch with a file called `app.js`. I made changes to this file on an `experiment` branch. I want to apply only the changes made to `app...

25 Jul at 05:17

Git: How to check if a local repo is up to date?

Git: How to check if a local repo is up to date? I would like to know if my local repo is up to date (and if not, ideally, I would like to see the changes). How could I check this without doing `git f...

29 Oct at 11:53