Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend shallow git cloning. #1453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gibbz00
Copy link

@gibbz00 gibbz00 commented Jan 13, 2024

Fixes: #1452

Simply ran:

find . -type f -name '*.md' -print | xargs sed -i 's/git clone -b main/git clone --single-branch --depth 1/g'
find . -type f -name '*.md' -print | xargs sed -i 's/git clone http/git clone --single-branch --depth 1/g'

Copy link

netlify bot commented Jan 13, 2024

Deploy Preview for frosty-austin-928e43 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2a44a86
🔍 Latest deploy log https://app.netlify.com/sites/frosty-austin-928e43/deploys/65a283e84bffa30008f61b9b
😎 Deploy Preview https://deploy-preview-1453--frosty-austin-928e43.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 42
🟠 Accessibility 89
🟠 Best practices 83
🟠 SEO 75
🟢 PWA 100

Lighthouse ran on https://deploy-preview-1453--frosty-austin-928e43.netlify.app/

@prashant-shahi
Copy link
Member

Hey @gibbz00, thanks for the PR.

This helps people who would just want to run it once.

Can you sync latest changes from upstream and also retain the -b main part?

Try running the following:

find . -type f -name '*.md' -print | xargs sed -i 's/git clone -b main/git clone -b main --single-branch --depth 1/g'
find . -type f -name '*.md' -print | xargs sed -i 's/git clone http/git clone --single-branch --depth 1/g'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recommend using shallow clone on installation.
2 participants