Git
Git is the version control system used for Exponential development. The canonical repository
is hosted on GitHub at
github.com/se7enxweb/exponential. Git is distributed — every clone is a full
copy of the repository history, enabling offline work and flexible branching.
Cloning the repository
To get a local copy of Exponential, clone the repository using SSH (recommended for contributors):
git clone git@github.com:se7enxweb/exponential.git <dir>
Or via HTTPS (read-only, no SSH key required):
git clone https://github.com/se7enxweb/exponential.git <dir>
Replace <dir> with the local directory name you want. If omitted, git
uses the repository name (exponential) as the directory.
Checking for local changes
After editing files, see what has changed with:
git status
For a compact summary:
git status -s
Viewing differences
To see the exact lines that changed in your working tree:
git diff
To compare staged (added) changes against the last commit:
git diff --cached
Staging and committing
Stage individual files or all changes, then commit:
git add <file>
# or stage everything
git add -A
git commit -m "Brief description of the change"
Keeping up to date
Fetch and integrate upstream changes from the main branch:
git pull origin main
Branching
Create a feature or fix branch before making changes, to keep main clean:
git checkout -b my-feature-branch
Push your branch to GitHub and open a pull request when the work is ready for review:
git push origin my-feature-branch
References
|