Skip to content
Snippets Groups Projects
Select Git revision
  • ab4a2d8b6872b06c3565827eb9961d7dbe82d530
  • master default protected
2 results

README.md

Blame
  • Carine Rey's avatar
    Carine Rey authored
    ab4a2d8b
    History
    README.md 823 B

    Exemple of minimal git repository

    First create your new project, for exemple "project_name" in your team group

    Then in a terminal, setup your git global config

    git config --global user.name "Carine Rey"
    git config --global user.email "carine.rey@ens-lyon.fr"

    Copy the depot template in your new project

    NEW_DEPOT=git@gitbio.ens-lyon.fr:LBMC/team/project_name.git
    
    NEW_NAME=$(basename $NEW_DEPOT)
    NEW_NAME=${NEW_NAME/.git}
    
    git clone git@gitbio.ens-lyon.fr:crey02/minimal_git_repo.git
    git clone $NEW_DEPOT
    
    rm -fr minimal_git_repo/.git
    mv $NEW_NAME/.git minimal_git_repo/
    rm -r $NEW_NAME
    
    mv minimal_git_repo $NEW_NAME
    cd $NEW_NAME
    
    rm README.md
    touch README.md
    
    git add -f * .gitignore
    git commit -m "initial commit"

    Finally, push your depot with the initial template

    git push