title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
git-tips |
true |
2023-08-21 12:19:20 UTC |
git |
markdown |
2023-08-21 11:59:51 UTC |
Your content here
Clone a repo:
git clone
Get the current branch:
git status
Add a folder:
git add .
Create a commit (Local):
git commit -m "BGA First Commit"
Push modificatiosnto the remote branch:
git push
Get the last version of the repo from the remote branch:
git pull
Change branch:
git checkout mybranch
List local branches:
git branch
List remote branches:
git branch -r
List local and remote branches:
git branch -a
Delete a branch (Local):
git branch -d my-branch-name
git branch -D my-branch-name
Configure repo:
git config –global user.name « Your Name »
git config –global user.email [email protected]
Logs:
git log -v
git log -p
Create a branch (local):
git branch my-new-branch
git checkout -b feat-azure-functions
Delete branch (Local):
git branch -d my-branch
Delete branch (Remote):
git push origin -d my-branch