Git Contd..
- In Git We add changes to the Staging area from Working directory
- New files are referred as untracked files as they were never part of the version control system (local repo)
- Now add the changes to the staging area
- Now commit the changes with some message
- Now lets delete a file
- Git will not track empty directories. When you add files to the directory then git will consider the files added
- Some useful commands so far
- Adding multiple changes to staging area and then commiting them
- Exercise:
- Create a new folder called as cicd (anywhere in your system)
- initialize the repository
- create the following folders and add Readme.md in each folder
- git
- maven
- msbuild
- sonarqube
- artifactory
- jenkins
- azuredevops
- Now commit these changes
- Now edit Readme.md in git and try to write one line about git (google and write) commit these changes
- Now make the the change in each folder’s Readme.md as one commit
- Now repeat the above by changing readme.md of each tool with one line description and commit it.
- Next Steps:
- Selective addition to staging area.
- Removing the changes from staging area
- Removing the changes from working tree
- How git works.
- Modifying commits.