Skip to content

Question 1

vishnu-KSR edited this page Feb 13, 2024 · 4 revisions

1.) Illustrate the following GIT operations using local and remote (Git hub) repositories with the screenshots of your demonstration.

Commands:

i) git clone - This command is used to clone the remote repository to local computer.

ii) git push - This command is used to push the changes from local to remote repository.

iii) git pull - This command is used to pull the changes from remote to local repo that are made by other developers.

iv) git commit - This command is used to move the changes to staged area.

v) git reset - This command is used to reset the changes that are after a commit.

vi) git status - This command is used to view the status of the files(Staged, unstaged, modified)

vii) git log - This command is used to view the commits that are made.

viii) git stash - This command is used to temporarily save the changes in local that can be used afterwards.

ix) Pull Request

x) Branching - git branch

xi) git checkout - Used to move from one branch to another.

xii) Branch Protection rules

xiii) Merging - git merge

xiv) VS Code - Merge conflicts