Most viewed questions in Git & GitHub

0 votes
2 answers

Reset commit of remote branch

Just fix the issue on your local, ...READ MORE

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

How to clone all remote branches in Git?

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

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

Git origin not found

For this to work, you need to ...READ MORE

Apr 25, 2018 in Git & GitHub by DragonLord999
• 8,450 points
1,202 views
0 votes
1 answer

How to share images in GitHub from local system?

Hi@akhtar, You can follow the below steps to ...READ MORE

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

rebasing vs merging

Merging and rebasing are written for the ...READ MORE

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

What are the steps to work on any production issue in git?

Let's go through the steps to understand ...READ MORE

Nov 26, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,156 views
0 votes
1 answer

GitHub "fatal: remote origin already exists"

Update the existing remote: $ git remote set-url ...READ MORE

May 1, 2022 in Git & GitHub by narikkadan
• 63,420 points
1,145 views
0 votes
0 answers

Could not open a connection to your authentication agent

I am getting this warning error: $ git ...READ MORE

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

Version control as source to gitlab

The steps I'm going to tell you ...READ MORE

Apr 23, 2018 in Git & GitHub by ajs3033
• 7,300 points
1,122 views
0 votes
3 answers

Can anyone explain the git workflow?

HI. The following will help you -Git Workflow Step ...READ MORE

Sep 23, 2020 in Git & GitHub by SRI
1,104 views
0 votes
1 answer

How to deploy Git (BitBucket) Capistrano to root directory

Here is what you should do.. The ...READ MORE

Jul 12, 2018 in Git & GitHub by Damon Salvatore
• 5,980 points
1,104 views
0 votes
1 answer

Where to store credentials for devops?

You can use any of the various ...READ MORE

Jul 23, 2018 in Git & GitHub by Kalgi
• 52,360 points
987 views
0 votes
1 answer

Is there a way to remove a directory from git repository?

This is simple, just follow the commands ...READ MORE

Jul 14, 2018 in Git & GitHub by Sophie may
• 10,610 points
975 views
+1 vote
1 answer

How to remove untracked files from the current Git working tree?

Hi@akhtar, If you have thousands of file then ...READ MORE

Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
960 views
0 votes
3 answers

What is git rebasing?

HI. Rebase is nothing but a Git utility ...READ MORE

Sep 4, 2020 in Git & GitHub by SRI
953 views
0 votes
1 answer

Trying to analyse Sonarqube from Drone.io in Github PRs

Just try the below steps.The DRONE_PULL_REQUEST environment variable has ...READ MORE

Jun 27, 2018 in Git & GitHub by shubham
• 7,340 points
933 views
0 votes
1 answer

Git & GitHub

Even though their names sound the same, ...READ MORE

Apr 26, 2018 in Git & GitHub by DragonLord999
• 8,450 points
912 views
0 votes
1 answer

How to get changes from master branch to a new branch in Git?

Hi@akhtar, You need to check out the branch and ...READ MORE

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

How to allow the client to switch git branches on a website? (*without technical knowledge, for QA)

I think ,except the two options you ...READ MORE

Jun 17, 2018 in Git & GitHub by shubham
• 7,340 points
890 views
0 votes
0 answers

How do I resolve git saying "Commit your changes or stash them before you can merge"?

I made some changes to my local ...READ MORE

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

How to change the URL for a remote Git repository?

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

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

How to add an empty directory to a Git repository?

Hi@akhtar, A popular solution is to simply add ...READ MORE

Oct 5, 2020 in Git & GitHub by MD
• 95,440 points
816 views
0 votes
1 answer

Is there a way to find out the URL that a local Git repository was originally cloned from?

Follow the below commands , the URL ...READ MORE

Jul 14, 2018 in Git & GitHub by Sophie may
• 10,610 points
816 views
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

Sep 4, 2020 in Git & GitHub by akhtar
• 38,230 points
782 views
0 votes
1 answer

Update Git branches from master.

Hi@akhtar, You can do merge. That is actually ...READ MORE

Jan 4, 2021 in Git & GitHub by MD
• 95,440 points
773 views
0 votes
2 answers

How do I install Git on CentOS?

Hi, If you want to install Git 1 ...READ MORE

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

How to roll back to previous version in Git?

Hi@akhtar, You can roll back your previous version ...READ MORE

Apr 29, 2020 in Git & GitHub by MD
• 95,440 points
767 views
0 votes
1 answer

Git in DevOps

DevOps is an approach to improve the ...READ MORE

Apr 27, 2018 in Git & GitHub by QueenBee
• 1,820 points
761 views
0 votes
1 answer

Not able to push the file to the remote repository from the local repository.PFA for the same

Please let me know if you have set ...READ MORE

Dec 17, 2018 in Git & GitHub by Arohi
753 views
–1 vote
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

Apr 10, 2018 in Git & GitHub by shubham
• 7,340 points

edited Dec 15, 2023 by Khan Sarfaraz 745 views
0 votes
1 answer

How to install git on ubuntu?

Hey @Ali, installing Git on ubuntu is ...READ MORE

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

Recovering a git branch

Check out the latest commit to this ...READ MORE

Nov 26, 2019 in Git & GitHub by Sirajul
• 59,230 points
739 views
0 votes
1 answer

How to delete all the Git stashes in the stack?

Hi@akhtar, If you want to delete all the ...READ MORE

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

How to list all the files in a commit in Git?

Hi@akhtar, Using git diff-tree is considered as a preferred way ...READ MORE

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

Difference between git rebase and git merge? Which among them is better to use? [closed]

Difference between git rebase and git merge? ...READ MORE

Nov 25, 2019 in Git & GitHub by anonymous
• 19,610 points

closed Nov 25, 2019 by Sirajul 715 views
+1 vote
1 answer

How to view the change history of a file using Git versioning?

Hi@akhtar, You can use gitk for this task. ...READ MORE

Dec 22, 2020 in Git & GitHub by MD
• 95,440 points
696 views
+1 vote
2 answers

Git Commands

This command basically adds all your changes ...READ MORE

Aug 14, 2018 in Git & GitHub by Kalgi
• 52,360 points
692 views
0 votes
1 answer

How do I install Git on windows?

Hey @Akash, follow these steps: Go to this ...READ MORE

Feb 19, 2019 in Git & GitHub by Nikhil
666 views
0 votes
0 answers

How to find and restore a deleted file in a Git repository?

Hi Team, I have one Git repository. I ...READ MORE

Dec 22, 2020 in Git & GitHub by akhtar
• 38,230 points
660 views
0 votes
1 answer

How to revert a Git repository to a previous commit?

Hi@akhtar, This depends a lot on what you ...READ MORE

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

How to save files in Git Stash?

Hi@akhtar, Git Stash temporarily save changes you've made to ...READ MORE

Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
655 views
+3 votes
1 answer

Git vs Mercurial

I'm going to put down pros and ...READ MORE

Sep 20, 2018 in Git & GitHub by lina
• 8,220 points
654 views
0 votes
1 answer

How can I set ssh key in GitHub?

Hi@akhtar, First you have to generate key using ...READ MORE

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

GitHub Error Message - Permission denied (publickey).

Hi@akhtar, I think GitHub isn't able to authenticate ...READ MORE

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

What all does a version control like git allow us to do?

Version control basically keeps a track of ...READ MORE

Feb 16, 2019 in Git & GitHub by Mariam
636 views
0 votes
1 answer

How to create branch in GitHub from my local Git repo?

Hi@akhtar, To sync your existing branch in GitHub, ...READ MORE

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

How to remove version tracking from a project cloned from git?

Hi@akhtar, All the data Git uses for information ...READ MORE

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

How to unstage a file in Git?

Hi@akhtar, Sometimes we accidentally add files in the ...READ MORE

Nov 19, 2020 in Git & GitHub by MD
• 95,440 points
621 views
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
621 views