Skip to content

Latest commit

 

History

History
50 lines (24 loc) · 1.48 KB

submit_task.md

File metadata and controls

50 lines (24 loc) · 1.48 KB

An illustration showing how we expect you to submit a task for a session.

  • Create a GitHub profile.

  • Next fork this repository.

task-1

  • Next clone the forked repository.

task-2

  • Create new file at the required day for the required task.

  • Once changes are made. Add and commit to local repository and push to remote.

task-3

git status to check changes in local repo.

git add <file/foldername> - to add changes to staging area.

git commit -m "commit message" - to commit staged changes to local repository

git push origin master - to push local changes to online repository.

  • Make a pull request from the forked repo.

task-4

  • Add a message for the pull request and it will read by the maintainers of the repository to choose whether or not to merge the changes.

One useful thing to do is to add another remote as the main repo to the cloned one

This will help you fetch the changes on the main repo referred to by the remote whenever we move forward by a commit.

task-5

After that to fetch the latest changes from the main repository:

git fetch main master - fetches the latest info from the master of the main repo.

git log --all --oneline --decorate - shows the commit log, branches in a tree view.

git merge main/master - merges the fetched changes from the main repo to the local repo.

task-6