Activity #5 GitHub Fundamentals

·

1 min read

  • git commit: this will create a commit (with commit hash) for your already in staged changes.

  • git pull: Git Pull command is used to fetch all changes from the remote repository to the current working directory. It automatically try to merge or rebase them into our current working directory.

  • git push: This will push your commit(s) to the remote repository.

  • git log: This will log the commit history along with commit hash and message.

  • git fetch: The Git Fetch command is used to fetch all changes from the remote repository to the local repository. It doesn’t make any changes to the current working directory.

  • git branch: This will list all branches that are available in the local repository

  • git checkout <branch-name>: This will change your current working branch to the specified branch.

  • git checkout -n <new-branch-name>: This will create and go to that branch simultaneously.

Repository link: https://github.com/froilanimnida/sample