Skip to content

Migrate old scripts to git #69529

Discussion options

You must be logged in to vote

You can create a git repository and add the changes in the same order you made them since you have the records of all changes. Here are the steps,

  1. Create an initially empty git repo. (Do this in an initially empty folder. Later you will add the changes)
git init
  1. Add the first version of your scripts into that folder
  2. Stage the changes and Create a commit (you can set the date in the past if you want)
git add .
git commit --date="2022.03.22 11:54" -m "Commit message"
  1. Add the next change (from your records)
  2. Stage and commit the changes (you can set the date in the past if you want)
git add .
git commit --date="2022.03.22 11:54" -m "Commit message"
  1. Repeat the steps 4 and 5 until you…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@2bitninja
Comment options

Answer selected by 2bitninja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question
2 participants