GIT-commands
GIT-commands
○ git commit -m "Commit Message": Commit files from staging to the local
repository.
○ git commit --amend: Modify the last commit (use with caution).
● Remote Repository:
○ git status: Check the current status of the working directory and staging area.
○ git log: View commit history.
○ git log --oneline: View concise commit history.
○ git diff: Show changes between the working directory and staging area.
○ git diff commit_id1 commit_id2: Compare two specific commits.
Branching Commands
Undoing Changes
○ git config --edit: Edit configuration details like email and username.
● Reverting Commits:
○ git revert commit_id: Create a new commit that undoes changes made in
a specific commit.