Git GitHub
Last updated
Was this helpful?
Last updated
Was this helpful?
Publish blog posts from R + knitr to WordPress
A minimal example of building and deploying a blogdown-based website via Travis CI
add this to book.json
Gitbook plugin component
YouTube
add this to book.json
Gitbook plugin component
YouTube
add this to book.json
Gitbook plugin component
YouTube
Create a new repository on GitHub. You can also add a gitignore file, a readme and a > licence if you want
Open Git Bash
Change the current working directory to your local project.
Initialize the local directory as a Git repository.
Add the files in your new local repository. This stages them for the first commit.
Commit the files that you’ve staged in your local repository.
Copy the https url of your newly created repo
In the Command prompt, add the URL for the remote repository where your local repository > will be pushed.
Push the changes in your local repository to GitHub.
Clone your fork:
Add remote from original repository in your forked repository:
Updating your fork from original repo to keep up with their changes:
Deleting the .git
folder may cause problems in your git repository. If you want to delete all your commit history but keep the code in its current state, it is very safe to do it as in the following:
Checkout
git checkout --orphan latest_branch
Add all the files
git add -A
Commit the changes
git commit -am "commit message"
Delete the branch
git branch -D main
Rename the current branch to main
git branch -m main
Finally, force update your repository
git push -f origin main