WPDD

WordPress Develop & Design

github upload version

To upload your current Electron.js application to GitHub, follow these steps:

  • Initialize a Git Repository
    • Open your terminal or command prompt.
    • Navigate to the project directory
    • Initialize a Git repository:
cd C:\electron\psa-static-app
git init
  • Create a .gitignore File
    • In your project directory, create a .gitignore file.
    • Add the following content to exclude unnecessary files like node_modules and temporary files:
node_modules/
*.log
.DS_Store
*.env
dist/
  • Stage and Commit Changes
    • Add all files to the staging area:
    • Commit the changes:
git add .

If you see error add this code:

git config --global --add safe.directory C:/wamp64/www/coweb/wp-content/plugins/ys-quotepress
git commit -m "Initial commit for PSA Static App"
  • Create a New GitHub Repository
    • Go to GitHub and log in.
    • Click the New button to create a new repository.
    • Enter the repository name (e.g., psa-static-app) and optional description.
    • Choose public or private visibility.
    • Click Create Repository.
  • Link Local Repository to GitHub
    • Copy the repository URL from GitHub.
    • Link the local repository:
git remote add origin <Replace-with-the-URL-you-copied>
  • Push Changes to GitHub
    • Push the changes to the main branch:
git branch -M main
git push -u origin main

Your project is now uploaded to GitHub. Let me know if you encounter any issues!