Steps:

  1. Setup Git:

    git config --global user.name "Your Name"
    git config --global user.email "[email protected]"
    
  2. Create a New Repository:

  3. Clone the Repository:

    git clone <https://github.com/your-username/git-basics-assignment.git>
    cd git-basics-assignment
    
  4. Create a Sample Project:

    # Git Basics Assignment
    
    This repository is for practicing Git basics including commits, branching, and merging.
    
  5. Initialize Git and Make Initial Commit:

    git init
    git add README.md
    git commit -m "Initial commit with README"
    
  6. Push to GitHub:

    git remote add origin <https://github.com/your-username/git-basics-assignment.git>
    git push -u origin main
    
  7. Create a New Branch:

    bashCopy code
    git checkout -b feature-1
    
  8. Make Changes and Commit:

    echo "This is feature 1" > feature.txt
    git add feature.txt
    git commit -m "Add feature 1"
    
  9. Push the New Branch to GitHub:

    git push origin feature-1
    
  10. Create a Pull Request:

  11. Merge the Pull Request:

  12. Update Local Repository:

    git checkout main
    git pull origin main
    
  13. Collaboration: