Creaticalmind

01 Bitbucket 본문

Bitbucket

01 Bitbucket

TigerBJ 2017. 10. 31. 23:09

01. Create a new repository

(private repository)


02. copy "https://davidjeon@bitbucket.org/davidjeon/java.git" to notepad


03. Click "I`m starting from scratch"


04. copy {


git clone https://davidjeon@bitbucket.org/davidjeon/java.gitcd javaecho "# My project's README" >> README.mdgit add README.mdgit commit -m "Initial commit"git push -u origin master

} to notepad


05. open Terminal 

*** plz do not close terminal windows until whole task finished.


06 . use "cd" keyword, enter directory to your workspace

e.g) cd /Users/gaebalso/Documents/workspace/java


07. enter each lines {


git clone https://davidjeon@bitbucket.org/davidjeon/java.gitcd javaecho "# My project's README" >> README.mdgit add README.mdgit commit -m "Initial commit"git push -u origin master

}


08. make 'test.txt' file at your repository

e.g) test.txt at cd /Users/gaebalso/Documents/workspace/java


09. i wish your very first terminal windows still open !!!!!!

if you close your terminal windows and you have no terminal windows

plz open Terminal and use "cd" keyword, enter directory to your workspace

e.g) cd /Users/gaebalso/Documents/workspace/java


10. enter follow each line {


git add .

git commit -m "write here as you wish"

git push origin master


}


11. go to Bitbucket site and you can check your Latest upload.


12. after work you can commit your new version to BitBucket with follow keyword{


git add .

git commit -m "write here as you wish"

git push origin master


}


13. make '.gitignore' file

for upload pure '.java' and '.class' files let`s make '.gitignore' file .


enter 'vi .gitignore' and vi text editer makes new file.

press 'i' key        -> start editing from cursor position

enter follow lines into '.gitignore' file


1
2
3
4
5
6
7
*.metadata
*.DS_Store
*.md
*.settings
*.classpath
*.project


press 'esc' key    -> save

enter ':wq!'         -> save and exit


14. after work you can commit your new version to BitBucket with follow keyword{


git add .

git commit -m "write here as you wish"

git push origin master


}






logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.


[프로세스 완료됨]

Comments