CA DevOps course tasks assigned repo
git clone https://github.com/username/repository.gitClones the remote repository to your local machine.
git statusShows the status of changes as untracked, modified, or staged.
git add filename.txtStages a specific file for commit.
To add all files:
git add .git commit -m "Describe your changes"Commits staged changes with a message.
git push origin mainPushes your commits to the main branch on the remote repository.
git pull origin mainFetches and merges changes from the remote main branch.
git checkout -b feature-branchCreates and switches to a new branch named feature-branch.
git checkout main
git merge feature-branchMerges feature-branch into main.
git logDisplays the commit history for the repository.
git checkout -- filename.txtReverts changes in a file to the last committed state.