Q1 - Ronak-Ronu/73772127142-Devops-Assignment-1 GitHub Wiki
GIT operations using local and remote (Github) repositories
Git clone
Copying a remote repository to your local machine.
Git init
Set up a new Git repository in your project directory, allowing version control for your files
Git add
Prepare changes in your working directory to be committed to the repository.
Git commit
Save your changes to the repository along with a descriptive message.
Git branch branch-name
Command used to create a branch in a Git repository.
Git branch
Command used to list in a Git repository.
Git checkout
Switch branches or restore working tree files.
Git Stash
Temporarily storing changes without committing them.
- Before using Git stash
2.Using Git stash
3.Apply changes again to file using git stash apply
Pull Request
Proposing changes and requesting them to be merged into a branch on the remote repository.
- Creating pull request
- Merging pull request
- Merged successful to main branch.
Git push
Sending your local commits to the remote repository.
- Pushing from Branch-1 which creates a pull request to merge in main branch.
- Pushing from main branch.