Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun Suk Ha committed Dec 28, 2023
1 parent 47f2963 commit 7c8ab79
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2023-12-22-ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ from mac edge browser

---

Use this for 1 MLflow Setup ML Engineer를 위한 MLOps (mlops-for-mle.github.io)
Use this for 1) MLflow Setup ML Engineer를 위한 MLOps (mlops-for-mle.github.io)

ssh -L 9091:localhost:5001 jun@hotcake

Expand Down
51 changes: 51 additions & 0 deletions _posts/2023-12-27-etc.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,54 @@ If vscode doesn't recognize `zsh`, install it first.

---

## jupyter notebook, permission denied, docker

[link](https://github.com/jupyter/docker-stacks/issues/1187)

---

## Push to a repo that I cloned from someone else's to my Github

[link1](https://stackoverflow.com/questions/18200248/cloning-a-repo-from-someone-elses-github-and-pushing-it-to-a-repo-on-my-github/44076938#44076938)

[link2](https://www.studytonight.com/git-guide/git-origin-master)

* `git remote add origin <remote repo address>` : origin이란 이름의 <remote repo address> 나타내는 remote을 새로 만듬\
`error: remote origin already exists` : git clone 하면 remote이름이 default로 origin이라서 이미 있는듯

* `git remote -v`\
`origin <...> (fetch)`\
`origin <...> (push)`

* `git remote origin upstream` : 기존의 origin을 upstream으로 이름 바꿈
* `git remote add origin <repo on github>` : 여기의 origin은 github에서 새로만든 repo를 나타냄
<repo on github> 은 내 github에서 new repo 만든거


```zsh
$ git remote
origin
upstream
```

* `git checkout -b origin` : create a branch "origin" (branch "main"은 이미 있던듯) \
따라서 현재 local repo에 branch가 "origin", "main" 두 개

```zsh
$ git branch
main
* origin
```

* `git checkout main`

```zsh
$ git branch
* main
origin
```

Note. Your branch is up to date with 'origin/main' : 여기서 'origin/main'은 remote tracking branch 인데\
결국 orignal denotes remote name and master denote the remote branch it is tracking.

![Alt text](image.png)
Binary file added _posts/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c8ab79

Please sign in to comment.