How to get the current status of a local repository in Git

0 votes
How to get the current status of a local repository in Git?
Nov 26, 2019 in DevOps Tools by anonymous
• 19,610 points
596 views

1 answer to this question.

0 votes

Using 'git status' command in the repository working directory, when this command is used it will display-

  • The current branch name

  • If it is an initial commit or not

  • List of the unstage/untracked files(which are newly added or modified but not added to staging/index) List of the files pending to commit(these files are previously added to stating/index)

If there is no file/folder to add or commit then it will just display name of the branch and message "nothing to commit, working directory clean"

answered Nov 26, 2019 by Sirajul
• 59,230 points

Related Questions In DevOps Tools

+1 vote
1 answer

i have a pyhton code in my git/git repository how to build that code in jenkins

Follow these steps @Bhaskar: Step 1: Open the Jenkins ...READ MORE

answered Oct 14, 2019 in DevOps Tools by Kalgi
• 52,360 points
640 views
0 votes
3 answers
0 votes
0 answers

How do you restructure working directory files in a git repository?

How do you restructure working directory files ...READ MORE

Nov 26, 2019 in DevOps Tools by anonymous
• 19,610 points
471 views
0 votes
1 answer

How to add a service account to the deployment in OpenShift?

Hi@akhtar, Some environment is dependent on a service ...READ MORE

answered Oct 3, 2020 in DevOps Tools by MD
• 95,440 points
2,689 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,520 views
+2 votes
1 answer
0 votes
1 answer

How do you restructure working directory files in a git repository?

If we have a file called 'myfile.txt' ...READ MORE

answered Nov 26, 2019 in DevOps Tools by anonymous
• 59,230 points
2,893 views
0 votes
1 answer

What are the steps to permanently remove a committed file from the repository?

To remove a file for example 'myfile.txt'; ...READ MORE

answered Nov 26, 2019 in DevOps Tools by Sirajul
• 59,230 points
1,434 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP