You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we'll be collaborating on the repository, it will be easiest to work with pull requests to the main branch. I would suggest protecting the main branch from direct commits. You can add a rule for this at: https://github.com/fredrikWHaug/consort-diagram/settings/branches
We can talk through the process of using git for development if it is helpful. Brief outline below!
I would recommend installing liquidprompt, which gives you a nicer command line prompt (e.g. by displaying your current git branch). On a Mac, open Terminal and then use Homebrew: brew install liquidprompt. Follow the instructions to add liquidprompt to your bash/zsh shell.
If you haven't set up an SSH key and added it to GitHub, you should do this. It avoids the need to keep typing your password:
make sure your main branch is up to date: git pull
check out your feature branch and switch to it: git switch -c fh/mynewfeature
make your improvements.
keep tabs on what changes you have made with git status.
add the changes with: git add FILENAME.
commit the changes with: git commit -m "my commit message".
git log will show you your commit log.
When the changes are ready, push them with git push (you'll receive a message saying the branch doesn't yet exist on the remote server. Just follow the instructions to create the remote branch).
As we'll be collaborating on the repository, it will be easiest to work with pull requests to the main branch. I would suggest protecting the main branch from direct commits. You can add a rule for this at: https://github.com/fredrikWHaug/consort-diagram/settings/branches
We can talk through the process of using git for development if it is helpful. Brief outline below!
Setup
liquidprompt
, which gives you a nicer command line prompt (e.g. by displaying your current git branch). On a Mac, open Terminal and then use Homebrew:brew install liquidprompt
. Follow the instructions to add liquidprompt to your bash/zsh shell.projects
folder to store all of my different projects. Inside this, I run:git clone [email protected]:fredrikWHaug/consort-diagram.git
.To work on a new feature, bug fix, etc:
main
branch is up to date:git pull
git switch -c fh/mynewfeature
git status
.git add FILENAME
.git commit -m "my commit message"
.git log
will show you your commit log.git push
(you'll receive a message saying the branch doesn't yet exist on the remote server. Just follow the instructions to create the remote branch).The text was updated successfully, but these errors were encountered: