Find Useful Git commands in this Git Cheat Sheet.
Here is a basic Git cheat sheet:
git init
– Initialize a new git repository
git clone [repository]
– Clone an existing repository
git status
– Check the status of your repository
git add [file]
– Add a file to the repository
git commit -m "[message]"
– Commit changes with a message
git push
– Push changes to a remote repository
git pull
– Pull changes from a remote repository
git branch
– Show the current branch
git branch [branch-name]
– Create a new branch
git checkout [branch-name]
– Switch to a different branch
git merge [branch-name]
– Merge a branch into the current branch
git log
– Show the commit history
git diff
– Show changes between commits
git reset --hard [commit]
– Reset repository to a specific commit
git stash
– Stash changes
git stash apply
– Apply stashed changes
Please note that this is a basic cheat sheet and git has many more functionalities and options, it is worth reading the git documentation to learn more.
Offering employees, coworkers, teammates, and students constructive feedback is a vital part of growth on…
Millennials should avoid delaying the inevitable and look into various retirement investment pathways. Here’s why…
For most people, a satisfactory career is essential for leading a happy life. However, ensuring…
The pipeline industry is more than pipework and construction, and we explore those details in…
SQL Interview Questions and Answers In the world of data-driven decision-making, SQL (Structured Query Language)…