chore: ignore gem lock file in user-end

This commit is contained in:
Cotes Chung 2023-01-30 03:01:02 +08:00
parent 269506b647
commit dd339aea2b
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
2 changed files with 1 additions and 7 deletions

View File

@ -43,9 +43,7 @@ The above command will:
2. If the option `--no-gh` is provided, the directory `.github`{: .filepath} will be deleted. Otherwise, set up the GitHub Action workflow by removing the extension `.hook`{: .filepath} of `.github/workflows/pages-deploy.yml.hook`{: .filepath}, and then remove the other files and directories in the folder `.github`{: .filepath}. 2. If the option `--no-gh` is provided, the directory `.github`{: .filepath} will be deleted. Otherwise, set up the GitHub Action workflow by removing the extension `.hook`{: .filepath} of `.github/workflows/pages-deploy.yml.hook`{: .filepath}, and then remove the other files and directories in the folder `.github`{: .filepath}.
3. Remove item `Gemfile.lock` from `.gitignore`{: .filepath}. 3. Create a new commit to save the changes automatically.
4. Create a new commit to save the changes automatically.
### Installing Dependencies ### Installing Dependencies

View File

@ -66,10 +66,6 @@ init_files() {
rm -f _config.yml.$TEMP_SUFFIX rm -f _config.yml.$TEMP_SUFFIX
fi fi
# trace the gem lockfile on user-end
sed -i.$TEMP_SUFFIX "/Gemfile.lock/d" .gitignore
rm -f ".gitignore.$TEMP_SUFFIX"
# remove the other fies # remove the other fies
rm -rf _posts/* rm -rf _posts/*