1. First Time
echo "# nauka_java" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/bormarek/nauka_java.git
git push -u origin master
2. to push changed files
git add RandomTest.java
C:\Users\Marek\IdeaProjects\java\src>git commit -m "random method collection"
[master f72ffe9] random method collection
Committer: Marek Borkowski <Marek Borkowski>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 10 insertions(+)
create mode 100644 RandomTest1.java
C:\Users\Marek\IdeaProjects\java\src>git push -u origin master
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 391 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To https://github.com/bormarek/java.git
044547c..f72ffe9 master -> master
Branch master set up to track remote branch master from origin.
Brak komentarzy:
Prześlij komentarz