

$ mkdir your-aliases-folder-name cd your-aliases-folder-name You can create a personal plugin for oh-my-zsh by running these commands: $ cd ~/.oh-my-zsh/ My personal preference, however, is to make a zsh plugin to keep track of all my aliases. with your favorite editor (mine is Leafpad, so I would write $ leafpad ~/.zshrc). I made it for zsh, but it should work just fine for bash or any other shell like fish, xyzsh, fizsh, and so on.Įdit ~/.zshrc, /.bashrc, etc. Here's the alias I created to speed things along. There is probably a more elegant way of doing this, however I found this to be easiest for myself. $ cd ~Downloads/git git clone https:git.foo/poo.git Here's how I would do it, but I have made an alias to do it for me. The previous example uses the git:// protocol, but you may also see http(s):// or which uses the SSH transfer protocol. Git has a number of different transfer protocols you can use. That command does the same thing as the previous one, but the target directory is called mynewtheme. If you want to clone the repository into a directory named something other than open_framework, you can specify that as the next command-line option: $ git clone git:/SU-SWS/open_framework.git mynewtheme Cloning a Repository Into a Specific Local Folder If you go into the newly created open_framework directory, you’ll see the project files in there, ready to be worked on or used. git directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version. That creates a directory named open_framework (at your current local file system location), initializes a. You clone a repository with git clone įor example, if you want to clone the Stanford University Drupal Open Framework Git library called open_framework, you can do so like this: $ git clone git:///SU-SWS/open_framework.git If you just want it to work, use Option A, if someone else is going to look at what you have done, use Option C. Added -fn in case someone is copying these lines ( -f is force, -n avoid some often unwanted interactions with already and non-existing links). Which easily could be changed to test if you wanted it, i.e.: ln -sfn /opt/projectA/test/public /httpdocs/public Like this: ln -s /where/it/is/right/now /the/path/I/want/to/useįor your case this would be something like: ln -sfn /opt/projectA/prod/public /httpdocs/public Keep your working copy somewhere else, and create a symbolic link. shopt -s dotglob) but that is probably a bad solution if you are asking the question this answer answers. It is also possibe to do it in one line by enabling dotglob (i.e. The first line grabs all normal files, the second line grabs dot-files.

mv /where/it/is/right/now/* /where/I/want/it/ git folder is hidden in most graphical file explorers, so be sure to show hidden files.
