• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

GitHub Bootcamp: Day 2 - Setting Up GitHub

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
Welcome to Day 2 of our 5-day GitHub series! Today we’re setting up GitHub, the digital garage where developers store, collaborate on, and show off their code. If GitHub were a superhero, it’d be Batman: mysterious, powerful, and full of cool gadgets (like Actions and Pull Requests). Let's get you set up and ready to push code like a pro.

Step 1: Create a GitHub Account

Go to

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

and hit Sign up




Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



  • Pick a memorable username (bonus points for geeky puns).
  • Add your email and a strong password.
  • Choose your plan (the free one is plenty to get started).

You're officially a GitHubber now. ?

Step 2: Create Your First Repository


A repository (or “repo”) is where your project lives—kind of like a folder, but cooler.

How to Create a Repo:

  1. Click the + icon on the top-right → New repository.
  2. Give it a name like awesome-project.
  3. Add a description (optional but classy).
  4. Choose public (anyone can see) or private (for your eyes only).
  5. Check “Initialize this repository with a README” if you want to add one.
  6. Click Create repository.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Boom. Your project home is ready.

Step 3: Install Git Locally


To push code from your computer to GitHub, you’ll need Git installed.

Install Git:



Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Configure Git:


git config --global user.name "Your Name"
git config --global user.email "your@email.com"

This tells Git who you are (like a signature on your code).

Step 4: Push Your Code to GitHub


Let’s say you created a project on your computer called hello-github.

Push it to GitHub:


cd hello-github
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


git push -u origin main


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



And boom ? your code is now live on GitHub!

GitHub UI Tips for Beginners

  • README.md: A welcome message for your repo. Make it fun and informative.
  • Commits Tab: Shows your code history like a time-travel diary.
  • Branches: Parallel universes for your code. We’ll talk more tomorrow!
Bonus: Learn Git Basics


Here are a few must-know Git commands:

CommandDescription
git statusCheck what’s going on
git add .Stage all changes
git commit -m "message"Save changes
git pushUpload changes to GitHub
git pullFetch latest code
Conclusion


Today you created a GitHub account, made a repo, and learned how to push your first code. You’re officially dangerous (in a good way).

What’s Coming Next?


Tomorrow, we dive into Branching and Merging—aka how not to break stuff while working with others. Stay tuned!

#GitHub #Git #DeveloperTools #VersionControl #OpenSource #Day2


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу