Description | Git Command |
---|---|
Clone an existing repository | git clone "your URL" |
Create a new local repository | git init |
Changed files in your working directory | git status |
Changes to tracked files | git diff |
Add all current changes to the next commit | git add |
Add some chang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | Salesforce CLI | ANT Migration tool | | |
|--------------------|------------------------------------|-----------------------------------| | |
| Security | Authorization credentials need not | Authorization credentials need to | | |
| | be saved to file | be saved on file | | |
| Team Collaboration | Easier collaboration via scratch | Prevents collaboration on related | | |
| | orgs and artifacts | metadata items | | |
| Commands | Wide range of commands and finer | Limited set of commands | | |
| | control | | | |
| Version Updates | Automatic/click of button | Needs some manual steps | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Generate a full package xml using the Salesforce CLI | |
# Requirements : | |
# * Salesforce CLI | |
# * jq | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# author : benahm | |
# description : deploy a destructive change | |
#function to exit after input validations | |
die () { | |
echo >&2 "$@" | |
exit 1 | |
} |
This gist contains multiple files. Each file contains a specific type of Apex or Visualforce comment header.
When code is no longer used, but can not be deleted from your org, add the @deprecated
annotation to the File or Method Header.