770 B
770 B
# Push a Project to GitPasha
## 1. Create a New Repository
- Go to **GitPasha** website.
- Create a new repository (e.g., `linux-commands`).
- Copy the repository URL (HTTPS).
---
## 2. Navigate to Your Project Folder
```bash
cd path/to/folder
3. Initialize Git Locally
git init
git add .
git commit -m "first commit"
4. Connect to the Remote Repository (GitPasha)
git remote add origin <repo link>
5. Push Files to GitPasha
If your branch is master
:
git push -u origin master
If your branch is main
:
git branch -M main
git push -u origin main
Notes
- The first time you push using HTTPS, Git will ask for your *GitPasha username and password