Skip to content

Instantly share code, notes, and snippets.

@nobodybutyoulin
Last active July 9, 2023 07:51
Show Gist options
  • Save nobodybutyoulin/cad8969c27d4fe6d80b971175993499b to your computer and use it in GitHub Desktop.
Save nobodybutyoulin/cad8969c27d4fe6d80b971175993499b to your computer and use it in GitHub Desktop.
Sourcetree to Github
  1. On Github, create PAT(personal access token)
    Settings->Developer Settings->Personal Access Tokens->Tokens(classic)
    generate the token and keep in secure place (it only show once)

  2. In sourcetree, setting access acount of github
    preference->Accounts->Add
    Auth Type: Personal Access Token
    Username:
    PAT:
    Protocol: HTTPS

  3. For existing local repo without remote repo,
    select the local repo then select
    Repository settings->remote repository path ->
    add/edit with the following path: http://@github.com//

  4. To create new repo on remote,
    File->New->Create a remote repository
    3.2 Create local repo and also remote repo
    File->New->Create local repo

  5. Git Flow -> initialized Repo
    Master, Develop, Feature, Hotfix

  6. Git LFS
    Repo->Repo setting->Advanced->.gitignore list edit *.pt
    Repo->Git LFS->Initialized repo
    Repo->Git LFS->Track/Untrack Files add *.pt
    new gitattribute is generated then commit

  7. Push select master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment