An immutable journal for professional engineers.
- Visual Studio / Xamarin
- Android SDK 25+
- iOS SDK 10.2+
- Clone the repository:
git clone https://github.com/abdel/ProfessionalJournal.git
- Open the project in Visual Studio
-
Create a new branch using
git checkout -b BRANCH_NAME
whereBRANCH_NAME
is the name of the feature you're working on. For example, if your task you're working on is "Add Entry", then an optimal branch name would beadd-entry
. The branch name should be informative so other team members can know what you're working on. -
Make changes to the code
-
Once you've made changes to the code, you can either add all files to the "stage" commit or select the files you want to commit using:
git add .
for all files, orgit add FILENAME
for a specific file. -
Once you added the files you want to commit, run the following command
git commit -m 'MESSAGE'
whereMESSAGE
is an informative message about the updated files. For example, if you finished a part of the task, like "Creating the form to add entry", that could be your commit message. -
Once changes are comitted, you can push the changes to your branch using
git push origin BRANCH_NAME
. You can then create a pull request to merge your code into themaster
branch.
Merge conflicts occur when your branch diverts too much from the master branch. These can be resolved either automatically from the pull request in GitHub, or if it cannot resolve it for you, then you need to resolve it locally using the following commands:
- Switch to the master branch and get the latest changes
git checkout master
git pull origin master
- Go back to your branch, and merge the master branch into your branch to get your branch up to date
git checkout BRANCH_NAME
git merge origin master
- Commit the changes and push the new updates to your branch
git commit
git push origin BRANCH_NAME