Pathology and Social Media
Pathology Tweets
Pathophysiology
Carcinogenesis, Hallmarks of Cancer
Pathology and Social Media
Pathology Tweets
Git GitHub

Git GitHub

  • add this to book.json
1
{
2
"plugins": ["youtube", "youtubex", "component", "autosize-iframe"]
3
}
Copied!
  • Gitbook plugin component
1
{
2
"plugins": ["component"]
3
}
4
5
<div data-gb-custom-block data-tag="component">
6
7
</div>
Copied!
  • YouTube
1
<div data-gb-custom-block data-tag="youtube">CR-7blJkNaI</div>
Copied!
  • add this to book.json
1
{
2
"plugins": ["youtube", "youtubex", "component", "autosize-iframe"]
3
}
Copied!
  • Gitbook plugin component
1
{
2
"plugins": ["component"]
3
}
4
5
<div data-gb-custom-block data-tag="component">
6
7
</div>
Copied!
  • YouTube
1
<div data-gb-custom-block data-tag="youtube">CR-7blJkNaI</div>
Copied!

GitBook Plugins

  • add this to book.json
1
{
2
"plugins": ["youtube", "youtubex", "component", "autosize-iframe"]
3
}
Copied!
  • Gitbook plugin component
1
{
2
"plugins": ["component"]
3
}
4
5
<div data-gb-custom-block data-tag="component">
6
7
</div>
Copied!
  • YouTube
1
<div data-gb-custom-block data-tag="youtube">CR-7blJkNaI</div>
Copied!
  • 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.
1
git init
Copied!
  • Add the files in your new local repository. This stages them for the first commit.
1
git add .
Copied!
  • Commit the files that you’ve staged in your local repository.
1
git commit -m "initial commit"
Copied!
  • 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.
1
git remote add origin 'remote_repository_URL'
Copied!
1
git remote -v
Copied!
  • Push the changes in your local repository to GitHub.
1
git push -f origin master
Copied!

clone a branch

1
git clone --single-branch --branch current-dev https://github.com/jamovi/jamovi.git
Copied!

Keeping a fork up to date

  1. 1.
    Clone your fork:
1
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
Copied!
  1. 1.
    Add remote from original repository in your forked repository:
1
cd into/cloned/fork-repo
2
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
3
git fetch upstream
Copied!
  1. 1.
    Updating your fork from original repo to keep up with their changes:
1
git pull upstream master
Copied!
how to delete all commit history in github?
Stack Overflow
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:
  1. 1.
    Checkout
    git checkout --orphan latest_branch
  2. 2.
    Add all the files
    git add -A
  3. 3.
    Commit the changes
    git commit -am "commit message"
  4. 4.
    Delete the branch
    git branch -D main
  5. 5.
    Rename the current branch to main
    git branch -m main
  6. 6.
    Finally, force update your repository
    git push -f origin main