python practice
git init
Purpose: Initializes a new Git repository in your project directory. git clone <repo_url>
Purpose: Creates a local copy of an existing remote repository. git add .
Purpose: Stages all modified and new files for the next commit. git commit -m "message"
Purpose: Records the staged changes in the repository with a descriptive message. git status
Purpose: Displays the current state of the working directory and staging area. git push origin <branch_name>
Purpose: Pushes changes from your local branch to the corresponding branch in the remote repository. git pull
Purpose: Fetches changes from the remote repository and merges them into your local branch. git branch
Purpose: Lists all branches in the repository and indicates the current branch. git checkout -b <branch_name>
Purpose: Creates a new branch and switches to it. git log --oneline
Purpose: Shows a simplified, one-line-per-commit history of the repository.