Friday, August 6, 2021

Basic commands Git

git commit:

git commit -m "<JIRA ticket> <Alias org> SF pull"

git commit a short version of the HASH:   

git log --pretty=format:"%h - %an, %ar : %s"

changing a commit:

git commit --amend -m "<description>"

delete branch locally:

git branch -d <localBranchName>

git checkout:

git checkout -b <new branch>

pull branch:

git pull origin <branch>

push branch:

git push -u origin <branch>

clone branch:

git clone -b <branch>

merge with meld:

git mergetool -t meld <path>

remove untracked/tracked files:

git reset --hard HEAD

remove untracked files:

git clean -fd

No comments:

Post a Comment

If you need to connect to the sandbox SFDX

 You can always view all possible connection methods in sfdx sfdx auth --help