Most viewed questions in Git & GitHub

0 votes
1 answer

What's difference between git rebase and git commit?

The git commit command captures a snapshot of the ...READ MORE

Oct 6, 2020 in Git & GitHub by Lyana
637 views
0 votes
1 answer

Migrate from SVN to Git

Hey @Hannah, follow these steps: Create authors file ...READ MORE

Oct 29, 2019 in Git & GitHub by Payal
629 views
0 votes
0 answers

How can I save username and password in Git?

I want to do a push and ...READ MORE

May 24, 2022 in Git & GitHub by Kichu
• 19,050 points
627 views
0 votes
0 answers

How do I use git reset --hard HEAD to revert to a previous commit

When I revert this commit: git reset --hard ...READ MORE

May 15, 2022 in Git & GitHub by Kichu
• 19,050 points
627 views
0 votes
1 answer

Implement automation between Git and GitHub.

Hi@akhtar, Every Git repository has a .git/hooks folder with a ...READ MORE

May 4, 2020 in Git & GitHub by MD
• 95,440 points
623 views
0 votes
1 answer

Difference between git stash pop and git stash apply.

"Git stash pop" deletes the last pushed ...READ MORE

Nov 21, 2020 in Git & GitHub by anonymous
607 views
0 votes
2 answers

Detach/move subdirectory into separate git repo

git filter-branch --prune-empty --subdirectory-filter <YOUR_SUBDIR_TO_KEEP> master git push ...READ MORE

Aug 20, 2018 in Git & GitHub by Nilesh
• 7,050 points
606 views
0 votes
1 answer

How to apply a Stash in Git?

Hi@akhtar, In order to apply your Git stash ...READ MORE

Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
593 views
+1 vote
1 answer

How to resolve merge conflicts in Git repository?

Hi@akhtar, You can try with git mergetool. It ...READ MORE

Nov 22, 2020 in Git & GitHub by MD
• 95,440 points
591 views
0 votes
1 answer

How to move the most recent commits to a new branch with Git?

Hi@akhtar, If you want to move your commits ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
587 views
0 votes
1 answer

How to reset the changes in Git?

Hi@MD, Reset command can be used to undo ...READ MORE

Nov 20, 2020 in Git & GitHub by akhtar
• 38,230 points
587 views
0 votes
0 answers

How do I properly force a Git push?

I have cloned a remote non-bare main ...READ MORE

May 19, 2022 in Git & GitHub by Kichu
• 19,050 points
581 views
0 votes
1 answer

How do I update the password for Git?

Hi@akhtar, You need to update your credentials. For ...READ MORE

Jan 5, 2021 in Git & GitHub by MD
• 95,440 points
579 views
0 votes
1 answer

How do I access my SSH public key?

Hi@akhtar, You can use the cat command in ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
579 views
0 votes
1 answer

How to recover a dropped stash in Git?

Hi@akhtar, You can create a separate branch for ...READ MORE

Nov 22, 2020 in Git & GitHub by MD
• 95,440 points
579 views
0 votes
1 answer

How to download single files from GitHub?

Hi@akhtar, Git does not support downloading parts of ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
564 views
0 votes
1 answer

git merge: Fast forwarding??

Hi@Hasid, In Git & GitHub, there is a ...READ MORE

Feb 2, 2020 in Git & GitHub by MD
• 95,440 points
564 views
0 votes
1 answer

How to get the files from the local desktop to the local repository?

Hey @Ali, Follow these steps to transfer ...READ MORE

Dec 17, 2018 in Git & GitHub by Arohi
564 views
0 votes
1 answer

How merge works in Git & GitHub!!!??

Hi@Hasid, In Git & GitHub merge concept comes ...READ MORE

Jan 31, 2020 in Git & GitHub by MD
• 95,440 points
555 views
0 votes
1 answer

Git pull a certain branch from GitHub.

Hi@akhtar, You can simply track your remote branches ...READ MORE

Jan 5, 2021 in Git & GitHub by MD
• 95,440 points
553 views
0 votes
1 answer

How to see the different versions of the files that we have amended after we do the commit on git.

I'm not very sure if looking all ...READ MORE

Dec 16, 2018 in Git & GitHub by Kiyara
550 views
0 votes
1 answer

How to remove files from git repository as well as users system?

Hi@akhtar, The git rm command deletes the file ...READ MORE

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points
541 views
0 votes
1 answer

Can I programmatically access gitlab secrets hash?

The newer versions of gitlab do support ...READ MORE

Mar 29, 2018 in Git & GitHub by DareDev
• 6,890 points
541 views
0 votes
1 answer

How to clone a specific Git branch?

Hi@akhtar, You need to specify the branch name ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
535 views
+1 vote
1 answer

How do I rename a local Git branch?

Hi@akhtar, You can rename your branch name. Sometimes ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
532 views
0 votes
1 answer

How to merge with squash in Git?

Hi@akhtar, If you want to merge your data ...READ MORE

May 13, 2020 in Git & GitHub by MD
• 95,440 points
524 views
+1 vote
1 answer

why we need to add at staging area before commit??

Hi@akhtar, The staging area is like a rough draft space, ...READ MORE

Jul 19, 2020 in Git & GitHub by MD
• 95,440 points
506 views
0 votes
1 answer

How to delete a Git branch remotely?

Hi@akhtar, You can delete the branch locally or ...READ MORE

Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
505 views
0 votes
1 answer

I want to create a repository on folder level in Git. Is this possible?

That is possible but ideally, you should ...READ MORE

Sep 28, 2020 in Git & GitHub by Mudit
501 views
0 votes
1 answer

How to clone seperate folder individually rather than the whole repository from GitHub?

Hi@akhtar, I don't think you can do that ...READ MORE

Aug 27, 2020 in Git & GitHub by MD
• 95,440 points
500 views
0 votes
1 answer

How to install Git in the Ubuntu system?

Hi@akhtar, In the Ubuntu system, you can use ...READ MORE

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points
487 views
0 votes
1 answer

How to merge data between Git branches?

Hi@akhtar, You can merge your data between Git ...READ MORE

May 10, 2020 in Git & GitHub by MD
• 95,440 points
481 views
0 votes
1 answer

Configure Git and GitHub

In version control with Git, we deal ...READ MORE

Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,450 points
477 views
0 votes
0 answers

Git fetch remote branch

I am my co-worker are working on ...READ MORE

May 14, 2022 in Git & GitHub by Kichu
• 19,050 points
470 views
0 votes
0 answers

How to use p4merge tool in Git & GitHub?

Hi, Can someone tell me, how to use ...READ MORE

Jan 31, 2020 in Git & GitHub by akhtar
• 38,230 points
459 views
0 votes
1 answer

Could I delete any of my commit which I had already push to central repository?

You can't delete, but you can always ...READ MORE

Dec 21, 2018 in Git & GitHub by Eric
456 views
0 votes
1 answer

I am not able to use pull, push, branch merge

Please execute the below command in the ...READ MORE

May 23, 2019 in Git & GitHub by Umer
454 views
0 votes
1 answer

How to ignore certain files in Git?

Hi@akhtar, The problem is that .gitignore ignores just files that ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
451 views
0 votes
1 answer

How to list all the saved stashes in Git?

Hi@akhtar, In Git, the stash operation takes your ...READ MORE

Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
434 views
0 votes
1 answer

How to undo pushed commits in Git?

Hi@akhtar, You can revert individual commits with: git revert ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
431 views
+1 vote
1 answer

How to discard unstaged changes in Git?

Hi@akhtar, You can save the unstaged changes in ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
416 views
0 votes
1 answer

How to reset or revert a file to a specific version?

Hi@akhtar, To revert a specific file to that ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
415 views
0 votes
1 answer

How to cancel a local git commit?

Hi@akhtar, You just need to use the git ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
410 views
0 votes
1 answer

How to undo the most recent local commits in Git?

Hi@akhtar, There is one way available to undo ...READ MORE

Dec 21, 2020 in Git & GitHub by MD
• 95,440 points
403 views
+1 vote
1 answer

How to create a remote Git branch?

Hi@akhtar, The easiest way is to create one ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
400 views
0 votes
0 answers

Git tutorial basics cases are explained here

Here is the link to the blog: https://www.edureka.co/blog/git-tutorial/ I ...READ MORE

Jun 4, 2020 in Git & GitHub by Vardhan
• 13,190 points
390 views
0 votes
0 answers

How to upload a project to GitHub?

I have created a repository and now ...READ MORE

May 2, 2022 in Git & GitHub by Kichu
• 19,050 points
382 views
0 votes
1 answer

How to make Git use the editor of our own choice for commits?

Hi@akhtar, You can set the editor name in ...READ MORE

Dec 23, 2020 in Git & GitHub by MD
• 95,440 points
379 views
+1 vote
1 answer

How to check out a remote Git branch?

Hi@akhtar, You can use the git checkout command ...READ MORE

Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
370 views
0 votes
0 answers

I run git tag command but its running continously

READ MORE

Aug 30, 2020 in Git & GitHub by Ravi
• 120 points
362 views