• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

export

AWS Set Profile

November 7, 2021

If you find yourself using a named profile for every awscli command, you can set it temporarily.

Listing a bucket with a named profile.

aws s3 ls --profile=yourprofile

aws s3 ls --profile=yourprofile

If you set AWS_PROFILE, you can then list a bucket without a named profile.

export AWS_PROFILE=yourprofile
aws s3 ls

export AWS_PROFILE=yourprofile aws s3 ls

After you are done, you can reset it back to default.

export AWS_PROFILE=default

export AWS_PROFILE=default

Filed Under: Cloud Tagged With: aws, AWS_PROFILE, default, export, profile, s3, set

Git Export

November 7, 2012

Subversion has an export command when you want a copy of the repository without the .svn directories and files. Git Export is similar to Subversion’s Export command. To export a project in Git, you will need to go to the root of your Git project and issue the following commands.

cd git/project

cd git/project

Create a gzip file or a zip file.

git archive master | gzip > project.tgz

git archive master | gzip > project.tgz

or

git archive master | zip > project.zip

git archive master | zip > project.zip

Filed Under: Git Tagged With: export

Subversion Export

November 5, 2012

Subversion Export creates a clean working copy of a project without the .svn folders and files. In this example, the command creates a folder named `project` and places a clean working copy in it.

svn export http://repository/project/trunk project

svn export http://repository/project/trunk project

Filed Under: SVN Tagged With: export

  • Home
  • About
  • Archives

Copyright © 2023